[vlc-devel] commit: Qt: menu playback/bookmark can now open the bookmarks dialog ( Jean-Philippe Andre )
git version control
git at videolan.org
Sun Feb 15 17:47:54 CET 2009
vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Mon Feb 16 00:44:53 2009 +0800| [3d836aaa6be7be3e784f80cbafee9292b35d6463] | committer: Jean-Philippe Andre
Qt: menu playback/bookmark can now open the bookmarks dialog
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d836aaa6be7be3e784f80cbafee9292b35d6463
---
modules/gui/qt4/menus.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index bb695a6..aaaa937 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -615,7 +615,13 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
{
if( menu->isEmpty() )
{
- ACT_ADDMENU( menu, "bookmark", qtr( "&Bookmarks" ) );
+ QAction *action;
+ QMenu *submenu = new QMenu( qtr( "&Bookmarks" ), menu );
+ addDPStaticEntry( submenu, qtr( "Manage &bookmarks" ), "",
+ SLOT( bookmarksDialog() ) );
+ submenu->addSeparator();
+ action = menu->addMenu( submenu );
+ action->setData( "bookmark" );
ACT_ADDMENU( menu, "title", qtr( "T&itle" ) );
ACT_ADDMENU( menu, "chapter", qtr( "&Chapter" ) );
ACT_ADDMENU( menu, "navigation", qtr( "&Navigation" ) );
More information about the vlc-devel
mailing list