diff --git a/qml/windowed/AppListView.qml b/qml/windowed/AppListView.qml index 7f917fe7..c7ca1877 100644 --- a/qml/windowed/AppListView.qml +++ b/qml/windowed/AppListView.qml @@ -240,6 +240,12 @@ FocusScope { launchApp(desktopId) } } + // touchscreen long press. + onPressAndHold: function (mouse) { + if (mouse.button === Qt.NoButton) { + showContextMenu(itemDelegate, model) + } + } } background: ItemBackground { implicitWidth: DStyle.Style.itemDelegate.width diff --git a/qml/windowed/FreeSortListView.qml b/qml/windowed/FreeSortListView.qml index e6ce7992..895736c2 100644 --- a/qml/windowed/FreeSortListView.qml +++ b/qml/windowed/FreeSortListView.qml @@ -350,6 +350,16 @@ Item { launchItem() } } + + // touchscreen long press. + onPressAndHold: function (mouse) { + if (mouse.button === Qt.NoButton) { + showContextMenu(itemDelegate, model, { + hideMoveToTopMenu: index === 0 + }) + baseLayer.focus = true + } + } } } diff --git a/qml/windowed/IconItemDelegate.qml b/qml/windowed/IconItemDelegate.qml index cb7e4225..628950f5 100644 --- a/qml/windowed/IconItemDelegate.qml +++ b/qml/windowed/IconItemDelegate.qml @@ -64,6 +64,12 @@ Control { root.itemClicked() } } + // touchscreen long press. + onPressAndHold: function (mouse) { + if (mouse.button === Qt.NoButton) { + root.menuTriggered() + } + } } contentItem: Column { anchors.fill: parent