From b8833af3f927d4aaacf32e3cdc295e03d1953592 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 19 Jul 2020 20:20:53 -0400 Subject: [PATCH] HTile: add middleClicked() signal --- TODO.md | 2 +- src/gui/Base/HTile/HTile.qml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index c9b9f88b..9b0dc320 100644 --- a/TODO.md +++ b/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 diff --git a/src/gui/Base/HTile/HTile.qml b/src/gui/Base/HTile/HTile.qml index 86c3ce4c..3b53b2db 100644 --- a/src/gui/Base/HTile/HTile.qml +++ b/src/gui/Base/HTile/HTile.qml @@ -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