Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
e1ef1151
Commit
e1ef1151
authored
9 years ago
by
François Cartegnie
Browse files
Options
Downloads
Patches
Plain Diff
Qt: align tooltip to slider groove (fix
#14277
)
parent
4e9f9cc4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt4/util/input_slider.cpp
+2
-2
2 additions, 2 deletions
modules/gui/qt4/util/input_slider.cpp
with
2 additions
and
2 deletions
modules/gui/qt4/util/input_slider.cpp
+
2
−
2
View file @
e1ef1151
...
...
@@ -341,7 +341,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
/* Tooltip */
if
(
inputLength
>
0
)
{
int
margin
=
handleLength
()
/
2
;
int
margin
=
handleLength
();
int
posX
=
qMax
(
rect
().
left
()
+
margin
,
qMin
(
rect
().
right
()
-
margin
,
event
->
x
()
)
);
QString
chapterLabel
;
...
...
@@ -352,7 +352,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
int
i_selected
=
-
1
;
for
(
int
i
=
0
;
i
<
points
.
count
()
;
i
++
)
{
int
x
=
points
.
at
(
i
).
time
/
1000000.0
/
inputLength
*
size
().
width
();
int
x
=
margin
+
points
.
at
(
i
).
time
/
1000000.0
/
inputLength
*
(
size
().
width
()
-
2
*
margin
)
;
if
(
event
->
x
()
>=
x
)
i_selected
=
i
;
}
...
...
This diff is collapsed.
Click to expand it.
François Cartegnie
@fcartegnie
mentioned in issue
#14277 (closed)
·
4 years ago
mentioned in issue
#14277 (closed)
mentioned in issue #14277
Toggle commit list
Thomas Guillem
@tguillem
mentioned in issue
#16052 (closed)
·
4 years ago
mentioned in issue
#16052 (closed)
mentioned in issue #16052
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment