1 Description: Make Ctrl+Q work on normal X11 desktops
2 Upstream changed from explicit Ctrl+Q to QkeySequence::Quit, which Qt defines
3 to Ctrl+Q for OSX, KDE and Gnome, but not for other X11 desktops, so
4 explicitely add Ctrl+Q back.
5 Author: Jakob Haufe <sur5r@sur5r.net>
7 Last-Update: 2014-01-25
9 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
10 index 3392ff2..2e97174 100644
11 --- a/src/mainwindow.cpp
12 +++ b/src/mainwindow.cpp
13 @@ -376,7 +376,9 @@ void MainWindow::createActions() {
15 quitAct = new QAction(tr("&Quit"), this);
16 quitAct->setMenuRole(QAction::QuitRole);
17 - quitAct->setShortcut(QKeySequence(QKeySequence::Quit));
18 + quitAct->setShortcuts(QList<QKeySequence>()
19 + << QKeySequence(QKeySequence::Quit)
20 + << QKeySequence(Qt::CTRL + Qt::Key_Q));
21 quitAct->setStatusTip(tr("Bye"));
22 actions->insert("quit", quitAct);
23 connect(quitAct, SIGNAL(triggered()), SLOT(quit()));