Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
51a66e85
Commit
51a66e85
authored
Aug 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: process FSC key event in the main interface (factor code)
parent
6ad5c698
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+1
-10
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+3
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+2
-0
No files found.
modules/gui/qt4/components/controller.cpp
View file @
51a66e85
...
...
@@ -935,19 +935,10 @@ void FullscreenControllerWidget::leaveEvent( QEvent *event )
/**
* When you get pressed key, send it to video output
* FIXME: clearing focus by clearFocus() to not getting
* key press events didnt work
*/
void
FullscreenControllerWidget
::
keyPressEvent
(
QKeyEvent
*
event
)
{
int
i_vlck
=
qtEventToVLCKey
(
event
);
if
(
i_vlck
>
0
)
{
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-pressed"
,
i_vlck
);
event
->
accept
();
}
else
event
->
ignore
();
emit
keyPressed
(
event
);
}
/* */
...
...
modules/gui/qt4/components/controller.hpp
View file @
51a66e85
...
...
@@ -229,6 +229,9 @@ public:
void
fullscreenChanged
(
vout_thread_t
*
,
bool
b_fs
,
int
i_timeout
);
void
mouseChanged
(
vout_thread_t
*
,
int
i_mousex
,
int
i_mousey
);
signals:
void
keyPressed
(
QKeyEvent
*
);
public
slots
:
void
setVoutList
(
vout_thread_t
**
,
int
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
51a66e85
...
...
@@ -416,6 +416,8 @@ void MainInterface::createMainWidget( QSettings *settings )
if
(
config_GetInt
(
p_intf
,
"qt-fs-controller"
)
)
{
fullscreenControls
=
new
FullscreenControllerWidget
(
p_intf
,
this
);
CONNECT
(
fullscreenControls
,
keyPressed
(
QKeyEvent
*
),
this
,
handleKeyPress
(
QKeyEvent
*
)
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment