Fix activation of right-click on touch devices

This commit is contained in:
Rinigus
2020-03-24 16:42:41 +02:00
parent a0e659098d
commit 5058e3c13e
2 changed files with 15 additions and 0 deletions

View File

@@ -106,9 +106,15 @@ HColumnLayout {
TapHandler {
acceptedButtons: Qt.RightButton
acceptedPointerTypes: PointerDevice.GenericPointer
onTapped: openContextMenu()
}
TapHandler {
acceptedPointerTypes: PointerDevice.Finger | PointerDevice.Pen
onLongPressed: openContextMenu()
}
HMenu {
id: contextMenu