From 919dea0de60d058f57a4b9bd1e5f4513a014c693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 17 Mar 2014 07:48:50 +0100 Subject: Revert "Better right-click behaviour, context menu on mouse-up instead of mouse down" This reverts commit 00a945d84b59d6469e0c85335dc0ad4067d9f2ab. NOPE. --- gui/MainWindow.cpp | 2 +- gui/groupview/GroupView.cpp | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'gui') diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 3ab93ba9..17d4630b 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -177,7 +177,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi view->setFrameShape(QFrame::NoFrame); view->setModel(proxymodel); - //view->setContextMenuPolicy(Qt::CustomContextMenu); + view->setContextMenuPolicy(Qt::CustomContextMenu); connect(view, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(showInstanceContextMenu(const QPoint &))); diff --git a/gui/groupview/GroupView.cpp b/gui/groupview/GroupView.cpp index 342e2523..b650efee 100644 --- a/gui/groupview/GroupView.cpp +++ b/gui/groupview/GroupView.cpp @@ -380,14 +380,6 @@ 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) -- cgit v1.2.3