]> git.sesse.net Git - vlc/commitdiff
Qt menus: s/Q_FOREACH/foreach
authorJean-Philippe Andre <jpeg@via.ecp.fr>
Mon, 16 Jun 2008 21:01:57 +0000 (23:01 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Jun 2008 02:58:33 +0000 (19:58 -0700)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/menus.cpp

index 605595bc3fc1edbfde01badb0937e6bf40e119c8..34bd9571daf41b7a7ab9c25491580c118266d906 100644 (file)
@@ -106,7 +106,7 @@ void EnableDPStaticEntries( QMenu *menu, bool enable = true )
         return;
 
     QAction *action;
-    Q_FOREACH( action, menu->actions() )
+    foreach( action, menu->actions() )
     {
         if( action->data().toString() == "_static_" )
             action->setEnabled( enable );
@@ -122,7 +122,7 @@ int DeleteNonStaticEntries( QMenu *menu )
     QAction *action;
     if( !menu )
         return VLC_EGENERIC;
-    Q_FOREACH( action, menu->actions() )
+    foreach( action, menu->actions() )
     {
         if( action->data().toString() != "_static_" )
             delete action;
@@ -204,7 +204,7 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
 static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
 {
     QAction *action;
-    Q_FOREACH( action, menu->actions() )
+    foreach( action, menu->actions() )
     {
         if( action->data().toString() == psz_var )
             return action;
@@ -215,7 +215,7 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
 static QAction * FindActionWithText( QMenu *menu, QString &text )
 {
     QAction *action;
-    Q_FOREACH( action, menu->actions() )
+    foreach( action, menu->actions() )
     {
         if( action->text() == text )
             return action;
@@ -854,7 +854,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
 
     /* Disable all non static entries */
     QAction *p_action;
-    Q_FOREACH( p_action, menu->actions() )
+    foreach( p_action, menu->actions() )
     {
         if( p_action->data().toString() != "_static_" )
             p_action->setEnabled( false );