[vlc-devel] commit: Qt menus: s/Q_FOREACH/foreach (Jean-Philippe Andre )
git version control
git at videolan.org
Tue Jun 17 05:36:13 CEST 2008
vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Mon Jun 16 23:01:57 2008 +0200| [02e74e703ed99bfe33c88f5adf2b3d6482a075ae]
Qt menus: s/Q_FOREACH/foreach
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02e74e703ed99bfe33c88f5adf2b3d6482a075ae
---
modules/gui/qt4/menus.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 605595b..34bd957 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -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 );
More information about the vlc-devel
mailing list