HTile: add middleClicked() signal
This commit is contained in:
@@ -11,6 +11,7 @@ HButton {
|
||||
property Component contextMenu: null
|
||||
|
||||
signal leftClicked()
|
||||
signal middleClicked()
|
||||
signal rightClicked()
|
||||
signal longPressed()
|
||||
|
||||
@@ -45,6 +46,12 @@ HButton {
|
||||
onLongPressed: tile.longPressed()
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.MiddleButton
|
||||
onTapped: middleClicked()
|
||||
onLongPressed: tile.middleClicked()
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
||||
|
Reference in New Issue
Block a user