[vlc-devel] commit: Qt: provide shortcuts for history items (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Dec 11 13:28:31 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 10 19:20:22 2009 +0100| [5216a7521d634661a05022abb8a8f8d9230adf61] | committer: Jean-Baptiste Kempf 

Qt: provide shortcuts for history items

Recents items from 1 to 9 are supported to Ctrl+1 to Ctrl+9

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5216a7521d634661a05022abb8a8f8d9230adf61
---

 modules/gui/qt4/menus.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index c5e17de..5bb55b4 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1437,8 +1437,8 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
             {
                 action = recentsMenu->addAction(
                         QString( "&%1: " ).arg( i + 1 ) + l.at( i ),
-                        rmrl->signalMapper,
-                        SLOT( map() ) );
+                        rmrl->signalMapper, SLOT( map() ),
+                        i <= 9 ? QString( "Ctrl+%1" ).arg( i + 1 ) : "" );
                 rmrl->signalMapper->setMapping( action, l.at( i ) );
             }
 




More information about the vlc-devel mailing list