[vlc-devel] commit: Qt: menus, document. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sat Feb 7 21:58:06 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Feb  7 21:57:52 2009 +0100| [fd1baec61d9eb82c5036ae302d4a078466a9ece5] | committer: Jean-Baptiste Kempf 

Qt: menus, document.

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index dbf7336..8a3bd6a 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -842,22 +842,26 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
 
             menu->addSeparator();
 
+            /* Input menu */
             vlc_object_hold( p_input );
             InputAutoMenuBuilder( p_input, objects, varnames );
             vlc_object_release( p_input );
 
+            /* Audio menu */
             submenu = new QMenu( menu );
             action = menu->addMenu( AudioMenu( p_intf, submenu ) );
             action->setText( qtr( "&Audio" ) );
             if( action->menu()->isEmpty() )
                 action->setEnabled( false );
 
+            /* Video menu */
             submenu = new QMenu( menu );
             action = menu->addMenu( VideoMenu( p_intf, submenu ) );
             action->setText( qtr( "&Video" ) );
             if( action->menu()->isEmpty() )
                 action->setEnabled( false );
 
+            /* Playback menu for chapters */
             submenu = new QMenu( menu );
             action = menu->addMenu( NavigMenu( p_intf, submenu ) );
             action->setText( qtr( "&Playback" ) );
@@ -904,13 +908,12 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
                     vlc_object_release( p_object );
                 }
                 else
-                {
                     msg_Dbg( p_intf, "could not find parent interface" );
-                }
             }
             menu->addMenu( submenu );
         }
 
+        /* Static entries for ending, like open */
         PopupMenuStaticEntries( menu );
 
         p_intf->p_sys->p_popup_menu = menu;




More information about the vlc-devel mailing list