From f8605bae75b5c528e40cd9894998372452418731 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Sun, 30 Aug 2009 19:05:34 +0200 Subject: [PATCH] Show keyboard shortcuts in the status tip --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5