From: Flavio Tordini Date: Thu, 13 Aug 2009 12:40:15 +0000 (+0200) Subject: volume mute keyboard shortcut X-Git-Tag: 0.6~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8f99a1054805b2d7d662c805414c713f24001c9;p=minitube volume mute keyboard shortcut --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d19c080..774b827 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -173,24 +173,30 @@ void MainWindow::createActions() { // Invisible actions - searchFocusAct = new QAction(tr("&Search"), this); + searchFocusAct = new QAction(this); searchFocusAct->setShortcut(QKeySequence::Find); actions->insert("search", searchFocusAct); connect(searchFocusAct, SIGNAL(triggered()), this, SLOT(searchFocus())); addAction(searchFocusAct); - volumeUpAct = new QAction(tr("&Volume up"), this); + volumeUpAct = new QAction(this); volumeUpAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Plus)); actions->insert("volume-up", volumeUpAct); connect(volumeUpAct, SIGNAL(triggered()), this, SLOT(volumeUp())); addAction(volumeUpAct); - volumeDownAct = new QAction(tr("&Volume down"), this); + volumeDownAct = new QAction(this); volumeDownAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Minus)); actions->insert("volume-down", volumeDownAct); connect(volumeDownAct, SIGNAL(triggered()), this, SLOT(volumeDown())); addAction(volumeDownAct); + volumeMuteAct = new QAction(this); + volumeMuteAct->setShortcut(tr("Ctrl+M")); + actions->insert("volume-mute", volumeMuteAct); + connect(volumeMuteAct, SIGNAL(triggered()), this, SLOT(volumeMute())); + addAction(volumeMuteAct); + // common action properties foreach (QAction *action, actions->values()) {