[vlc-commits] qml: set attached ToolTip defaults for IconToolButton

Fatih Uzunoglu git at videolan.org
Tue Apr 6 09:54:52 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Apr  2 01:22:24 2021 +0300| [0ff5281c342e7a7c1e2931a6ce9993f107706208] | committer: Pierre Lamot

qml: set attached ToolTip defaults for IconToolButton

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

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

 modules/gui/qt/widgets/qml/IconToolButton.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/IconToolButton.qml b/modules/gui/qt/widgets/qml/IconToolButton.qml
index dfb1c179a5..daf2ccfa03 100644
--- a/modules/gui/qt/widgets/qml/IconToolButton.qml
+++ b/modules/gui/qt/widgets/qml/IconToolButton.qml
@@ -38,6 +38,9 @@ ToolButton {
 
     enabled: !paintOnly
 
+    ToolTip.text: control.text
+    ToolTip.delay: 500
+
     onActiveFocusChanged: {
         if (!enabled) {
             var keyNavigationLeft = control.KeyNavigation.left



More information about the vlc-commits mailing list