[vlc-commits] [Git][videolan/vlc][master] qml: fix chapter name displayed while hovering the seekbar
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Feb 13 21:11:16 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
2408ff7c by Pierre Lamot at 2022-02-13T20:40:09+00:00
qml: fix chapter name displayed while hovering the seekbar
PointingTooltip.position was removed in commit 5f674bc
- - - - -
1 changed file:
- modules/gui/qt/player/qml/SliderBar.qml
Changes:
=====================================
modules/gui/qt/player/qml/SliderBar.qml
=====================================
@@ -31,6 +31,7 @@ Slider {
property int barHeight: VLCStyle.dp(5, VLCStyle.scale)
property bool _isHold: false
property bool _isSeekPointsShown: true
+ property real _tooltipPosition: timeTooltip.pos.x / sliderRectMouseArea.width
property alias backgroundColor: sliderRect.color
property alias progressBarColor: progressRect.color
@@ -59,7 +60,7 @@ Slider {
text: Player.length.scale(pos.x / control.width).toString() +
(Player.hasChapters ?
- " - " + Player.chapters.getNameAtPosition(timeTooltip.position) : "")
+ " - " + Player.chapters.getNameAtPosition(control._tooltipPosition) : "")
pos: Qt.point(sliderRectMouseArea.mouseX, 0)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2408ff7c9d276b79fd4b8c493eb195fdd249ad27
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2408ff7c9d276b79fd4b8c493eb195fdd249ad27
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list