From 00a945d84b59d6469e0c85335dc0ad4067d9f2ab Mon Sep 17 00:00:00 2001 From: Sky Date: Sun, 16 Mar 2014 20:34:30 +0000 Subject: Better right-click behaviour, context menu on mouse-up instead of mouse down --- gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/MainWindow.cpp') diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 17d4630b..3ab93ba9 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 &))); -- cgit