diff options
| author | Sky <git@bunnies.cc> | 2014-03-16 20:34:30 +0000 |
|---|---|---|
| committer | Sky <git@bunnies.cc> | 2014-03-16 20:34:30 +0000 |
| commit | 00a945d84b59d6469e0c85335dc0ad4067d9f2ab (patch) | |
| tree | 597f0110ccb04d8e2c81808995b4ffd700196cf7 /gui/groupview | |
| parent | de2eb3fc5404cbbfd438919c250885e5e8450a82 (diff) | |
| download | PrismLauncher-00a945d84b59d6469e0c85335dc0ad4067d9f2ab.tar.gz PrismLauncher-00a945d84b59d6469e0c85335dc0ad4067d9f2ab.tar.bz2 PrismLauncher-00a945d84b59d6469e0c85335dc0ad4067d9f2ab.zip | |
Better right-click behaviour, context menu on mouse-up instead of mouse down
Diffstat (limited to 'gui/groupview')
| -rw-r--r-- | gui/groupview/GroupView.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/groupview/GroupView.cpp b/gui/groupview/GroupView.cpp index b650efee..342e2523 100644 --- a/gui/groupview/GroupView.cpp +++ b/gui/groupview/GroupView.cpp @@ -380,6 +380,14 @@ void GroupView::mouseReleaseEvent(QMouseEvent *event) bool click = (index == m_pressedIndex && index.isValid()) || (m_pressedCategory && m_pressedCategory == categoryAt(geometryPos)); + bool isRight = event->button() == Qt::RightButton; + + if((index == m_pressedIndex && index.isValid()) && isRight) + { + emit customContextMenuRequested(event->pos()); + return; + } + if (click && m_pressedCategory) { if (state() == ExpandingState) |
