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:
|
- 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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user