[vlc-commits] [Git][videolan/vlc][master] qml: correct ListView.delayRemove assignation in TableViewDelegate
    Jean-Baptiste Kempf (@jbk) 
    gitlab at videolan.org
       
    Fri Dec 17 11:55:03 UTC 2021
    
    
  
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
e1596650 by Fatih Uzunoglu at 2021-12-17T10:33:46+00:00
qml: correct ListView.delayRemove assignation in TableViewDelegate
ListView.delayRemove should apply to the
delegate, which has id: delegate, and not
the root.
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/TableViewDelegate.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/TableViewDelegate.qml
=====================================
@@ -36,12 +36,16 @@ T.Control {
 
     property int _modifiersOnLastPress: Qt.NoModifier
 
+    readonly property bool dragActive: hoverArea.drag.active
+
     // Settings
 
     width: view.width
 
     height: root.rowHeight
 
+    ListView.delayRemove: dragActive
+
     // Connections
 
     Connections {
@@ -139,8 +143,6 @@ T.Control {
             }
 
             root.dragItem.Drag.active = drag.active;
-
-            root.ListView.delayRemove = drag.active;
         }
 
         // Childs
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e1596650da020dce092c300b962ccccdd0acea67
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e1596650da020dce092c300b962ccccdd0acea67
You're receiving this email because of your account on code.videolan.org.
    
    
More information about the vlc-commits
mailing list