[vlc-commits] [Git][videolan/vlc][master] qml: off-screen render DragItem

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Feb 26 16:29:51 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
bfa5132d by Fatih Uzunoglu at 2024-02-26T16:12:49+00:00
qml: off-screen render DragItem

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -119,15 +119,8 @@ Item {
     // Implementation
     //---------------------------------------------------------------------------------------------
 
-    // always keep drag item out of view
-    z: -1
-
     parent: T.Overlay.overlay
 
-    x: parent.width + VLCStyle.margin_large
-
-    y: parent.height + VLCStyle.margin_large
-
     visible: false
 
     Drag.dragType: Drag.None
@@ -144,6 +137,10 @@ Item {
 
     enabled: false
 
+    // Offscreen render:
+    layer.enabled: true
+    layer.effect: Item { }
+
     function _setData(data) {
         console.assert(data.length === indexes.length)
         _data = data



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

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