[vlc-devel] commit: Qt: recent Items, prepend with an accelerator and a number for keyboard faster access. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Sat Jan 3 12:42:16 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan  2 17:22:30 2009 +0100| [abbea5793dd4bd5444f1f1d37cfa4b6f72e8b089] | committer: Jean-Baptiste Kempf 

Qt: recent Items, prepend with an accelerator and a number for keyboard faster access.

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f54485f..f18835a 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1329,7 +1329,8 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
         {
             for( int i = 0; i < l.size(); ++i )
             {
-                action = recentsMenu->addAction( l.at( i ),
+                action = recentsMenu->addAction(
+                        QString( "&%1: " ).arg( i + 1 ) + l.at( i ),
                         rmrl->signalMapper,
                         SLOT( map() ) );
                 rmrl->signalMapper->setMapping( action, l.at( i ) );




More information about the vlc-devel mailing list