summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-16 10:15:39 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2011-12-16 10:15:39 -0500
commitef086b5e41ac01e04fe1d7e416131b0d5939825f (patch)
treedf7403e37bfb2838b72a77913068ba02cd739913 /Source
parent1706a7ed5b43f39dd6a8ff2f7ed7552b88463268 (diff)
parent56e04991048ff27e2af1fdcf98fc731ca59280a3 (diff)
downloadcmake-ef086b5e41ac01e04fe1d7e416131b0d5939825f.tar.gz
Merge topic 'qtdialog-quit'
56e0499 QtDialog: Set Ctrl+Q as the shortcut for quitting the program.
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 1c058d37c6..338eaffb42 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()));