]> git.sur5r.net Git - minitube/commitdiff
Show keyboard shortcuts in the status tip
authorFlavio Tordini <flavio.tordini@gmail.com>
Sun, 30 Aug 2009 17:05:34 +0000 (19:05 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Sun, 30 Aug 2009 17:05:34 +0000 (19:05 +0200)
src/MainWindow.cpp

index 470beb3831575b341668b172b379ad2107a79108..8eeb4f64baba48de08192fd98284e4fa2fb663d2 100755 (executable)
@@ -210,6 +210,10 @@ void MainWindow::createActions() {
         action->setAutoRepeat(false);
         action->setToolTip(action->statusTip());
 
+        // show keyboard shortcuts in the status bar
+        if (!action->shortcut().isEmpty())
+            action->setStatusTip(action->statusTip() + " (" + action->shortcut().toString() + ")");
+
         // make the actions work when video is fullscreen
         action->setShortcutContext(Qt::ApplicationShortcut);