HTile: add middleClicked() signal

This commit is contained in:
miruka 2020-07-19 20:20:53 -04:00
parent 8a73e65254
commit b8833af3f9
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@
- Image viewer:
- fix gifs
- double click on img to open fullscreen
- double click on EventImage to open fullscreen
- open externally in context menu in timeline thumbnail
- hflickable support kinetic scrolling disabler and speed/decel settings
- buttons

View File

@ -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