summaryrefslogtreecommitdiffstats
path: root/src/kommando.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-22 23:31:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-22 23:31:08 +0900
commit100a40e71a3f796a93675f9940c42ebe6429740e (patch)
tree7151220871015b8bb28b0a6f11163ca109848888 /src/kommando.cpp
parent33b26938657c9790eff9389ac23d9eb0205c9378 (diff)
downloadkommando-100a40e71a3f796a93675f9940c42ebe6429740e.tar.gz
kommando-100a40e71a3f796a93675f9940c42ebe6429740e.zip
Updated to version 0.5.2 from https://store.kde.org/p/1081202. Code available under GPL2 license
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kommando.cpp')
-rw-r--r--src/kommando.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kommando.cpp b/src/kommando.cpp
index 6996d1b..e4abda2 100644
--- a/src/kommando.cpp
+++ b/src/kommando.cpp
@@ -279,4 +279,17 @@ void Kommando::selectButton( int num )
actMenu->selectButton(num);
}
+void Kommando::mousePressEvent(QMouseEvent* evt)
+{
+ middleMouseButtonState = (evt->button() == Qt::MidButton);
+}
+
+void Kommando::mouseReleaseEvent(QMouseEvent* evt)
+{
+ if(middleMouseButtonState && (evt->button() == Qt::MidButton)){
+ middleMouseButtonState = false;
+ slotNavClick();
+ }
+}
+
#include "kommando.moc"