summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2011-12-13 23:51:16 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2011-12-15 15:51:50 (GMT)
commit56e04991048ff27e2af1fdcf98fc731ca59280a3 (patch)
tree62142df2ffa2ccf5a13048e3f83a5e3a85362928 /Source
parent0a6543d957463f0a7f7a585cc43468174c1204a0 (diff)
downloadCMake-56e04991048ff27e2af1fdcf98fc731ca59280a3.zip
CMake-56e04991048ff27e2af1fdcf98fc731ca59280a3.tar.gz
CMake-56e04991048ff27e2af1fdcf98fc731ca59280a3.tar.bz2
QtDialog: Set Ctrl+Q as the shortcut for quitting the program.
QKeySequence::Quit does not work on all platforms, and since it translates to Ctrl+Q on all platforms where it does work, Ctrl+Q was hardcoded instead.
Diffstat (limited to 'Source')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 1c058d3..338eaff 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -26,6 +26,7 @@
#include <QMimeData>
#include <QUrl>
#include <QShortcut>
+#include <QKeySequence>
#include <QMacInstallDialog.h>
#include "QCMake.h"
@@ -99,6 +100,7 @@ CMakeSetupDialog::CMakeSetupDialog()
QObject::connect(this->DeleteCacheAction, SIGNAL(triggered(bool)),
this, SLOT(doDeleteCache()));
this->ExitAction = FileMenu->addAction(tr("E&xit"));
+ this->ExitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
QObject::connect(this->ExitAction, SIGNAL(triggered(bool)),
this, SLOT(close()));