[vlc-commits] [Git][videolan/vlc][master] qt: fix artwork info widget can not be dragged with Qt 6.2

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Aug 10 10:59:18 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b2358bbf by Fatih Uzunoglu at 2024-08-10T10:38:53+00:00
qt: fix artwork info widget can not be dragged with Qt 6.2

- - - - -


1 changed file:

- modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml


Changes:

=====================================
modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml
=====================================
@@ -107,13 +107,29 @@ AbstractButton {
         indexes: [0]
     }
 
-    DragHandler {
-        target: null
-        onActiveChanged: {
-            if (active) {
-                dragItem.Drag.active = true
-            } else {
-                dragItem.Drag.drop()
+    // TODO: Qt bug 6.2: QTBUG-103604
+    Item {
+        anchors.fill: parent
+
+        TapHandler {
+            gesturePolicy: TapHandler.ReleaseWithinBounds // TODO: Qt 6.2 bug: Use TapHandler.DragThreshold
+
+            grabPermissions: TapHandler.CanTakeOverFromHandlersOfDifferentType | TapHandler.ApprovesTakeOverByAnything
+
+            onTapped: History.push(["player"])
+        }
+
+        DragHandler {
+            target: null
+
+            grabPermissions: PointerHandler.CanTakeOverFromHandlersOfDifferentType | PointerHandler.ApprovesTakeOverByAnything
+
+            onActiveChanged: {
+                if (active) {
+                    dragItem.Drag.active = true
+                } else {
+                    dragItem.Drag.drop()
+                }
             }
         }
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b2358bbf038ae9080d5f49ec78679cb39a0c0b2c

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