use foreach loop

svn path=/trunk/KDE/kdebase/workspace/; revision=1118786
icc-effect-5.14.5
Hugo Pereira Da Costa 2010-04-25 21:34:20 +00:00
parent 78c80f2116
commit 7c42c041c1
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@
#include <KLocale>
#include <KColorUtils>
#include <KDebug>
#include <QtGui/QApplication>
#include <QtGui/QLabel>
#include <QtGui/QPainter>
#include <QtGui/QBitmap>
#include <QtCore/QObjectList>
namespace Oxygen
{
@ -143,8 +145,8 @@ namespace Oxygen
{
QList<QLabel*> children( widget()->findChildren<QLabel*>() );
for( QList<QLabel*>::iterator iter = children.begin(); iter != children.end(); ++iter )
{ (*iter)->setAutoFillBackground( false ); }
foreach( QLabel* widget, children )
{ widget->setAutoFillBackground( false ); }
}