Merge topic 'qtdialog-quit'

56e0499 QtDialog: Set Ctrl+Q as the shortcut for quitting the program.
This commit is contained in:
David Cole 2011-12-16 10:15:39 -05:00 committed by CMake Topic Stage
commit ef086b5e41
1 changed files with 2 additions and 0 deletions

View File

@ -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()));