From: Flavio Tordini Date: Fri, 4 Sep 2009 09:02:09 +0000 (+0200) Subject: Ctrl+W quits X-Git-Tag: 0.6~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b086516ef7a7537f6183cda09e39a2a9eceba595;p=minitube Ctrl+W quits --- 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()));