diff options
Diffstat (limited to 'src/kommando.cpp')
-rw-r--r-- | src/kommando.cpp | 13 |
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" |