Commit 02e74e70 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre Committed by Jean-Baptiste Kempf

Qt menus: s/Q_FOREACH/foreach

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e825ac86
...@@ -106,7 +106,7 @@ void EnableDPStaticEntries( QMenu *menu, bool enable = true ) ...@@ -106,7 +106,7 @@ void EnableDPStaticEntries( QMenu *menu, bool enable = true )
return; return;
QAction *action; QAction *action;
Q_FOREACH( action, menu->actions() ) foreach( action, menu->actions() )
{ {
if( action->data().toString() == "_static_" ) if( action->data().toString() == "_static_" )
action->setEnabled( enable ); action->setEnabled( enable );
...@@ -122,7 +122,7 @@ int DeleteNonStaticEntries( QMenu *menu ) ...@@ -122,7 +122,7 @@ int DeleteNonStaticEntries( QMenu *menu )
QAction *action; QAction *action;
if( !menu ) if( !menu )
return VLC_EGENERIC; return VLC_EGENERIC;
Q_FOREACH( action, menu->actions() ) foreach( action, menu->actions() )
{ {
if( action->data().toString() != "_static_" ) if( action->data().toString() != "_static_" )
delete action; delete action;
...@@ -204,7 +204,7 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object, ...@@ -204,7 +204,7 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
static QAction * FindActionWithVar( QMenu *menu, const char *psz_var ) static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
{ {
QAction *action; QAction *action;
Q_FOREACH( action, menu->actions() ) foreach( action, menu->actions() )
{ {
if( action->data().toString() == psz_var ) if( action->data().toString() == psz_var )
return action; return action;
...@@ -215,7 +215,7 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var ) ...@@ -215,7 +215,7 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
static QAction * FindActionWithText( QMenu *menu, QString &text ) static QAction * FindActionWithText( QMenu *menu, QString &text )
{ {
QAction *action; QAction *action;
Q_FOREACH( action, menu->actions() ) foreach( action, menu->actions() )
{ {
if( action->text() == text ) if( action->text() == text )
return action; return action;
...@@ -854,7 +854,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf, ...@@ -854,7 +854,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
/* Disable all non static entries */ /* Disable all non static entries */
QAction *p_action; QAction *p_action;
Q_FOREACH( p_action, menu->actions() ) foreach( p_action, menu->actions() )
{ {
if( p_action->data().toString() != "_static_" ) if( p_action->data().toString() != "_static_" )
p_action->setEnabled( false ); p_action->setEnabled( false );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment