[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: expose `hovered` status in `LabelExt`

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri May 29 17:56:33 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
dba77783 by Fatih Uzunoglu at 2026-05-29T19:43:35+02:00
qml: expose `hovered` status in `LabelExt`

In some cases it is necessary to have this,
such as if we do the text elision ourselves
and hence need to modify `ToolTip.visible`.

- - - - -
8d467f5b by Fatih Uzunoglu at 2026-05-29T19:43:35+02:00
qml: remove versioned imports in `LabelExt`

Amends 0b104fde. It is interesting that
this did not break the static build with
Qt 6 update unlike other components.

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/LabelExt.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/LabelExt.qml
=====================================
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2024 VLC authors and VideoLAN
+ * Copyright (C) 2026 VLC authors and VideoLAN
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
+import QtQuick
+import QtQuick.Templates as T
 import VLC.Style
 
 T.Label {
@@ -24,6 +24,8 @@ T.Label {
     T.ToolTip.delay: VLCStyle.delayToolTipAppear
     T.ToolTip.text: text
 
+    property alias hovered: hoverHandler.hovered
+
     HoverHandler {
         id: hoverHandler
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c36225d37e0f1bfca337cb5300141f9b2472b0df...8d467f5bd62f350f314b871328c148bc26b3ce47

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c36225d37e0f1bfca337cb5300141f9b2472b0df...8d467f5bd62f350f314b871328c148bc26b3ce47
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list