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.
This commit is contained in:
Joshua Goins
2023-08-14 16:45:16 -04:00
parent 280d1e38e2
commit 91d9406c38

View File

@@ -28,6 +28,8 @@ Delegates.RoundedItemDelegate {
TapHandler {
acceptedButtons: Qt.RightButton
acceptedDevices: PointerDevice.Mouse
grabPermissions: PointerHandler.TakeOverForbidden
gesturePolicy: TapHandler.WithinBounds
onTapped: root.contextMenuRequested()
}