Prevent the TapHandler in AvatarTabButton from triggering clicked()
This caused right-clicks on this component (for example, in the space
drawer) to cause clicked() to be called on the delegate.
(cherry picked from commit 91d9406c38)
This commit is contained in:
@@ -28,6 +28,8 @@ Delegates.RoundedItemDelegate {
|
|||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
acceptedDevices: PointerDevice.Mouse
|
acceptedDevices: PointerDevice.Mouse
|
||||||
|
grabPermissions: PointerHandler.TakeOverForbidden
|
||||||
|
gesturePolicy: TapHandler.WithinBounds
|
||||||
onTapped: root.contextMenuRequested()
|
onTapped: root.contextMenuRequested()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user