From 7c42c041c18a9dd379c2543afcac3f947fb231a4 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sun, 25 Apr 2010 21:34:20 +0000 Subject: [PATCH] use foreach loop svn path=/trunk/KDE/kdebase/workspace/; revision=1118786 --- clients/oxygen/oxygenclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index dadddee006..d1744d57de 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -38,11 +38,13 @@ #include #include +#include #include #include #include #include +#include namespace Oxygen { @@ -143,8 +145,8 @@ namespace Oxygen { QList children( widget()->findChildren() ); - for( QList::iterator iter = children.begin(); iter != children.end(); ++iter ) - { (*iter)->setAutoFillBackground( false ); } + foreach( QLabel* widget, children ) + { widget->setAutoFillBackground( false ); } }