[vlc-commits] qml: bind sliderbar tooltip location

Fatih Uzunoglu git at videolan.org
Thu Aug 27 12:44:30 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Jul 27 17:50:49 2020 +0300| [91c2ca5625b09f00f2e30061b00667ee79f786e9] | committer: Pierre Lamot

qml: bind sliderbar tooltip location

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91c2ca5625b09f00f2e30061b00667ee79f786e9
---

 modules/gui/qt/player/qml/SliderBar.qml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/gui/qt/player/qml/SliderBar.qml b/modules/gui/qt/player/qml/SliderBar.qml
index d4e5d11b0b..a00a767b11 100644
--- a/modules/gui/qt/player/qml/SliderBar.qml
+++ b/modules/gui/qt/player/qml/SliderBar.qml
@@ -41,7 +41,7 @@ Slider {
 
     Item {
         id: timeTooltip
-        property real location: 0
+        property real location: sliderRectMouseArea.mouseX
         property real position: location/control.width
 
         y: VLCStyle.dp(-35)
@@ -120,7 +120,6 @@ Slider {
                     control.value = event.x / control.width
                     player.position = control.value
                 }
-                timeTooltip.location = event.x
             }
             onEntered: {
                 if(player.hasChapters)



More information about the vlc-commits mailing list