[vlc-commits] [Git][videolan/vlc][master] qml: fix menu key not working for TableViewDelegate

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 21 14:57:18 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2ad8f936 by Fatih Uzunoglu at 2022-10-21T14:42:49+00:00
qml: fix menu key not working for TableViewDelegate

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/widgets/qml/TableViewDelegate.qml
=====================================
@@ -83,7 +83,9 @@ T.Control {
     
     ListView.delayRemove: dragActive
 
-
+    Component.onCompleted: {
+        Keys.menuPressed.connect(contextButton.clicked)
+    }
 
     // Childs
 
@@ -112,8 +114,6 @@ T.Control {
 
             hoverEnabled: false
 
-            Keys.onMenuPressed: delegate.contextMenuButtonClicked(contextButton, delegate.rowModel)
-
             acceptedButtons: Qt.RightButton | Qt.LeftButton
 
             drag.target: delegate.dragItem



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

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