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
8b7486e8
Commit
8b7486e8
authored
Apr 25, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: SeekSlider: Don't show tooltip for unknown time positions
parent
86027501
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+10
-7
No files found.
modules/gui/qt4/util/input_slider.cpp
View file @
8b7486e8
...
...
@@ -147,6 +147,8 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
}
/* Tooltip */
if
(
inputLength
>
0
)
{
int
posX
=
qMax
(
rect
().
left
(),
qMin
(
rect
().
right
(),
event
->
x
()
)
);
QPoint
p
(
event
->
globalX
()
-
(
event
->
x
()
-
posX
)
-
(
mTimeTooltip
->
width
()
/
2
),
...
...
@@ -156,6 +158,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
secstotimestr
(
psz_length
,
(
posX
*
inputLength
)
/
size
().
width
()
);
mTimeTooltip
->
setTime
(
psz_length
);
mTimeTooltip
->
move
(
p
);
}
event
->
accept
();
}
...
...
@@ -176,7 +179,7 @@ void SeekSlider::wheelEvent( QWheelEvent *event )
void
SeekSlider
::
enterEvent
(
QEvent
*
e
)
{
/* Don't show the tooltip if the slider is disabled */
if
(
isEnabled
()
)
if
(
isEnabled
()
&&
inputLength
>
0
)
mTimeTooltip
->
show
();
}
...
...
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