From: Flavio Tordini Date: Sun, 30 Aug 2009 17:05:34 +0000 (+0200) Subject: Show keyboard shortcuts in the status tip X-Git-Tag: 0.6~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8605bae75b5c528e40cd9894998372452418731;p=minitube Show keyboard shortcuts in the status tip --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 470beb3..8eeb4f6 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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);