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
ee3754df
Commit
ee3754df
authored
Sep 29, 2011
by
Ludovic Fauvet
Committed by
Jean-Baptiste Kempf
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Fix corner-case with some top level windows
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
744bf6f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+11
-3
No files found.
modules/gui/qt4/util/input_slider.cpp
View file @
ee3754df
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
#include <QColor>
#include <QColor>
#include <QPoint>
#include <QPoint>
#include <QPropertyAnimation>
#include <QPropertyAnimation>
#include <QApplication>
#define MINIMUM 0
#define MINIMUM 0
#define MAXIMUM 1000
#define MAXIMUM 1000
...
@@ -291,16 +292,23 @@ void SeekSlider::enterEvent( QEvent * )
...
@@ -291,16 +292,23 @@ void SeekSlider::enterEvent( QEvent * )
animHandle
->
setDirection
(
QAbstractAnimation
::
Forward
);
animHandle
->
setDirection
(
QAbstractAnimation
::
Forward
);
animHandle
->
start
();
animHandle
->
start
();
}
}
/* Don't show the tooltip if the slider is disabled */
/* Don't show the tooltip if the slider is disabled
or a menu is open
*/
if
(
isEnabled
()
&&
inputLength
>
0
)
if
(
isEnabled
()
&&
inputLength
>
0
&&
!
qApp
->
activePopupWidget
()
)
mTimeTooltip
->
show
();
mTimeTooltip
->
show
();
}
}
void
SeekSlider
::
leaveEvent
(
QEvent
*
)
void
SeekSlider
::
leaveEvent
(
QEvent
*
)
{
{
hideHandleTimer
->
start
();
hideHandleTimer
->
start
();
if
(
!
rect
().
contains
(
mapFromGlobal
(
QCursor
::
pos
()
)
)
)
/* Hide the tooltip
- if the mouse leave the slider rect (Note: it can still be
over the tooltip!)
- if another window is on the way of the cursor */
if
(
!
rect
().
contains
(
mapFromGlobal
(
QCursor
::
pos
()
)
)
||
(
!
isActiveWindow
()
&&
!
mTimeTooltip
->
isActiveWindow
()
)
)
{
mTimeTooltip
->
hide
();
mTimeTooltip
->
hide
();
}
}
}
void
SeekSlider
::
hideEvent
(
QHideEvent
*
)
void
SeekSlider
::
hideEvent
(
QHideEvent
*
)
...
...
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