[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: open context menu when menu key is pressed in `PlaylistDelegate`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Apr 29 09:02:31 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
2e523352 by Fatih Uzunoglu at 2026-04-29T08:08:26+00:00
qml: open context menu when menu key is pressed in `PlaylistDelegate`
This seems to be missed in 75fdaaa6.
- - - - -
116056eb by Fatih Uzunoglu at 2026-04-29T08:08:26+00:00
qml: display context menu at more appropriate position with menu key in `GridItem`
- - - - -
2 changed files:
- modules/gui/qt/playlist/qml/PlaylistDelegate.qml
- modules/gui/qt/widgets/qml/GridItem.qml
Changes:
=====================================
modules/gui/qt/playlist/qml/PlaylistDelegate.qml
=====================================
@@ -105,6 +105,12 @@ T.Control {
// Events
+ Keys.onMenuPressed: {
+ if (contextMenu) {
+ contextMenu.popup(index, delegate.mapToGlobal(0, delegate.height))
+ }
+ }
+
// Functions
// Childs
=====================================
modules/gui/qt/widgets/qml/GridItem.qml
=====================================
@@ -95,7 +95,7 @@ T.ItemDelegate {
Accessible.selected: root.selected
Accessible.onPressAction: root.playClicked()
- Keys.onMenuPressed: root.contextMenuButtonClicked(picture, root.mapToGlobal(0,0))
+ Keys.onMenuPressed: root.contextMenuButtonClicked(picture, root.mapToGlobal(0, root.height))
Component.onCompleted: {
// Qt Quick AbstractButton sets a cursor for itself, unset it so that if the view has
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d8e17877de2926d8d599bd965a8b9375e04d4f36...116056eb453f480cac5d3c250211179b3219a451
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d8e17877de2926d8d599bd965a8b9375e04d4f36...116056eb453f480cac5d3c250211179b3219a451
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list