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: - Image viewer:
- fix gifs - fix gifs
- double click on img to open fullscreen - double click on EventImage to open fullscreen
- open externally in context menu in timeline thumbnail - open externally in context menu in timeline thumbnail
- hflickable support kinetic scrolling disabler and speed/decel settings - hflickable support kinetic scrolling disabler and speed/decel settings
- buttons - buttons

View File

@ -11,6 +11,7 @@ HButton {
property Component contextMenu: null property Component contextMenu: null
signal leftClicked() signal leftClicked()
signal middleClicked()
signal rightClicked() signal rightClicked()
signal longPressed() signal longPressed()
@ -45,6 +46,12 @@ HButton {
onLongPressed: tile.longPressed() onLongPressed: tile.longPressed()
} }
TapHandler {
acceptedButtons: Qt.MiddleButton
onTapped: middleClicked()
onLongPressed: tile.middleClicked()
}
TapHandler { TapHandler {
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen