Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d3c77e33
Commit
d3c77e33
authored
Apr 26, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, fsc: fix opacity when mouseover
And close #4542
parent
02f89b75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+3
-2
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+1
-0
No files found.
modules/gui/qt4/components/controller.cpp
View file @
d3c77e33
...
@@ -743,6 +743,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
...
@@ -743,6 +743,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
#if HAVE_TRANSPARENCY
#if HAVE_TRANSPARENCY
p_slowHideTimer
=
new
QTimer
(
this
);
p_slowHideTimer
=
new
QTimer
(
this
);
CONNECT
(
p_slowHideTimer
,
timeout
(),
this
,
slowHideFSC
()
);
CONNECT
(
p_slowHideTimer
,
timeout
(),
this
,
slowHideFSC
()
);
f_opacity
=
var_InheritFloat
(
p_intf
,
"qt-fs-opacity"
)
#endif
#endif
vlc_mutex_init_recursive
(
&
lock
);
vlc_mutex_init_recursive
(
&
lock
);
...
@@ -811,7 +812,7 @@ void FullscreenControllerWidget::showFSC()
...
@@ -811,7 +812,7 @@ void FullscreenControllerWidget::showFSC()
}
}
#if HAVE_TRANSPARENCY
#if HAVE_TRANSPARENCY
setWindowOpacity
(
var_InheritFloat
(
p_intf
,
"qt-fs-opacity"
)
);
setWindowOpacity
(
f_opacity
);
#endif
#endif
#ifdef Q_WS_X11
#ifdef Q_WS_X11
...
@@ -972,7 +973,7 @@ void FullscreenControllerWidget::enterEvent( QEvent *event )
...
@@ -972,7 +973,7 @@ void FullscreenControllerWidget::enterEvent( QEvent *event )
p_hideTimer
->
stop
();
p_hideTimer
->
stop
();
#if HAVE_TRANSPARENCY
#if HAVE_TRANSPARENCY
p_slowHideTimer
->
stop
();
p_slowHideTimer
->
stop
();
setWindowOpacity
(
DEFAULT_OPACITY
);
setWindowOpacity
(
f_opacity
);
#endif
#endif
event
->
accept
();
event
->
accept
();
}
}
...
...
modules/gui/qt4/components/controller.hpp
View file @
d3c77e33
...
@@ -278,6 +278,7 @@ private:
...
@@ -278,6 +278,7 @@ private:
QTimer
*
p_slowHideTimer
;
QTimer
*
p_slowHideTimer
;
bool
b_slow_hide_begin
;
bool
b_slow_hide_begin
;
int
i_slow_hide_timeout
;
int
i_slow_hide_timeout
;
float
f_opacity
;
#endif
#endif
int
i_mouse_last_x
,
i_mouse_last_y
;
int
i_mouse_last_x
,
i_mouse_last_y
;
...
...
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