HTile: add middleClicked() signal
This commit is contained in:
parent
8a73e65254
commit
b8833af3f9
2
TODO.md
2
TODO.md
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user