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
76dfb93e
Commit
76dfb93e
authored
Aug 22, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: Fix hotkey i for FS controller
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
Conflicts:
parent
069f260a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
25 deletions
+38
-25
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+37
-24
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
76dfb93e
...
...
@@ -1007,7 +1007,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
#ifdef WIN32TRICK
setWindowOpacity
(
0.0
);
fscHidden
=
true
;
b_
fscHidden
=
true
;
adjustSize
();
show
();
#endif
...
...
@@ -1032,9 +1032,9 @@ void FullscreenControllerWidget::showFSC()
if
(
isHidden
()
)
show
();
if
(
fscHidden
)
if
(
b_
fscHidden
)
{
fscHidden
=
false
;
b_
fscHidden
=
false
;
setWindowOpacity
(
1.0
);
}
#else
...
...
@@ -1054,7 +1054,7 @@ void FullscreenControllerWidget::showFSC()
void
FullscreenControllerWidget
::
hideFSC
()
{
#ifdef WIN32TRICK
fscHidden
=
true
;
b_
fscHidden
=
true
;
setWindowOpacity
(
0.0
);
// simulate hidding
#else
hide
();
...
...
@@ -1099,7 +1099,7 @@ void FullscreenControllerWidget::slowHideFSC()
else
{
#ifdef WIN32TRICK
if
(
windowOpacity
()
>
0.0
&&
!
fscHidden
)
if
(
windowOpacity
()
>
0.0
&&
!
b_
fscHidden
)
#else
if
(
windowOpacity
()
>
0.0
)
#endif
...
...
@@ -1125,25 +1125,38 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
switch
(
event
->
type
()
)
{
case
FullscreenControlToggle_Type
:
// FIXME
TOGGLEV
(
this
);
break
;
case
FullscreenControlShow_Type
:
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
if
(
b_fs
)
// FIXME I am not sure about that one
showFSC
();
break
;
case
FullscreenControlHide_Type
:
hideFSC
();
break
;
case
FullscreenControlPlanHide_Type
:
if
(
!
b_mouse_over
)
// Only if the mouse is not over FSC
planHideFSC
();
break
;
case
FullscreenControlToggle_Type
:
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
if
(
b_fs
)
#if WIN32TRICK
if
(
b_fscHidden
)
#else
if
(
isHidden
()
)
#endif
{
p_hideTimer
->
stop
();
showFSC
();
}
else
hideFSC
();
break
;
case
FullscreenControlShow_Type
:
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
if
(
b_fs
)
// FIXME I am not sure about that one
showFSC
();
break
;
case
FullscreenControlHide_Type
:
hideFSC
();
break
;
case
FullscreenControlPlanHide_Type
:
if
(
!
b_mouse_over
)
// Only if the mouse is not over FSC
planHideFSC
();
break
;
}
}
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
76dfb93e
...
...
@@ -288,7 +288,7 @@ private:
int
i_slow_hide_timeout
;
#ifdef WIN32TRICK
bool
fscHidden
;
bool
b_
fscHidden
;
#endif
virtual
void
customEvent
(
QEvent
*
event
);
...
...
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