Fix opening context menus
This commit is contained in:
@@ -559,7 +559,6 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedDevices: PointerDevice.Mouse
|
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onTapped: root.openContextMenu()
|
onTapped: root.openContextMenu()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,6 @@ QQC2.ToolBar {
|
|||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton | Qt.LeftButton
|
acceptedButtons: Qt.RightButton | Qt.LeftButton
|
||||||
acceptedDevices: PointerDevice.Mouse
|
|
||||||
onTapped: (eventPoint, button) => {
|
onTapped: (eventPoint, button) => {
|
||||||
// TODO Qt6 remove
|
// TODO Qt6 remove
|
||||||
if (!button) {
|
if (!button) {
|
||||||
|
|||||||
Reference in New Issue
Block a user