[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: show slider tool tip when the control is pressed

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Sep 29 10:01:40 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
655cb03d by Fatih Uzunoglu at 2023-09-29T09:39:08+00:00
qml: show slider tool tip when the control is pressed

- - - - -
cc8e12be by Fatih Uzunoglu at 2023-09-29T09:39:08+00:00
qml: show volume slider tool tip when mouse is pressed

- - - - -


2 changed files:

- modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
- modules/gui/qt/widgets/qml/Slider.qml


Changes:

=====================================
modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
=====================================
@@ -185,6 +185,11 @@ T.Pane {
                 onVolumeChanged: volControl._syncVolumeWithPlayer()
             }
 
+            Binding on toolTip.visible {
+                when: sliderMouseArea.pressed
+                value: true
+            }
+
             Navigation.leftItem: volumeBtn
             Navigation.parentItem: root
 


=====================================
modules/gui/qt/widgets/qml/Slider.qml
=====================================
@@ -141,7 +141,7 @@ T.Slider {
 
        pos: Qt.point(control._tooltipX, control.handle.height / 2)
 
-       visible: hoverHandler.hovered || control.visualFocus
+       visible: hoverHandler.hovered || control.visualFocus || control.pressed
 
        text: {
            if (!visible) return ""



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d5159d1ee60c02368f8de2062bae2dc3824f2b2e...cc8e12bea60715b7c70b1b9865a2815c4a83528c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d5159d1ee60c02368f8de2062bae2dc3824f2b2e...cc8e12bea60715b7c70b1b9865a2815c4a83528c
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