Add pen as an input device to the right click handler
This commit is contained in:
parent
5058e3c13e
commit
d17c6334da
|
@ -110,7 +110,7 @@ HButton {
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
||||||
onTapped: {
|
onTapped: {
|
||||||
rightClicked()
|
rightClicked()
|
||||||
if (contextMenu) contextMenuLoader.active = true
|
if (contextMenu) contextMenuLoader.active = true
|
||||||
|
|
|
@ -106,7 +106,7 @@ HColumnLayout {
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
||||||
onTapped: openContextMenu()
|
onTapped: openContextMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user