From b086516ef7a7537f6183cda09e39a2a9eceba595 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 4 Sep 2009 11:02:09 +0200 Subject: [PATCH] Ctrl+W quits --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 6e1697d..5225425 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -150,7 +150,7 @@ void MainWindow::createActions() { quitAct = new QAction(tr("&Quit"), this); quitAct->setMenuRole(QAction::QuitRole); - quitAct->setShortcut(tr("Ctrl+Q")); + quitAct->setShortcuts(QList() << QKeySequence(tr("Ctrl+Q")) << QKeySequence(Qt::CTRL + Qt::Key_W)); quitAct->setStatusTip(tr("Bye")); actions->insert("quit", quitAct); connect(quitAct, SIGNAL(triggered()), this, SLOT(quit())); -- 2.39.5