diff --git a/core/area.h b/core/area.h index a8791709e..ee42ae234 100644 --- a/core/area.h +++ b/core/area.h @@ -536,7 +536,7 @@ bool RegularArea::isNull() const if ( this->isEmpty() ) return false; - foreach ( const NormalizedShape& ns, *this ) + Q_FOREACH ( const NormalizedShape& ns, *this ) if ( !givePtr(ns)->isNull() ) return false; @@ -552,7 +552,7 @@ bool RegularArea::intersects( const NormalizedShape& rec if ( this->isEmpty() ) return false; - foreach ( const NormalizedShape& ns, *this ) + Q_FOREACH ( const NormalizedShape& ns, *this ) if ( !givePtr(ns)->isNull() && givePtr(ns)->intersects( rect ) ) return true; @@ -568,9 +568,9 @@ bool RegularArea::intersects( const RegularAreaisEmpty() ) return false; - foreach ( const NormalizedShape& ns, this ) + Q_FOREACH ( const NormalizedShape& ns, this ) { - foreach ( const Shape& shape, area ) + Q_FOREACH ( const Shape& shape, area ) { if ( !ns->isNull() && ns->intersects( shape ) ) return true; @@ -586,7 +586,7 @@ void RegularArea::appendArea( const RegularAreaappend( shape ); } @@ -627,7 +627,7 @@ bool RegularArea::contains( double x, double y ) const if ( this->isEmpty() ) return false; - foreach ( const NormalizedShape& ns, this ) + Q_FOREACH ( const NormalizedShape& ns, this ) if ( ns->contains( x, y ) ) return true; @@ -654,7 +654,7 @@ QList RegularArea::geometry( int xScale, int ySca QList ret; Shape t; - foreach( const NormalizedShape& ns, *this ) + Q_FOREACH ( const NormalizedShape& ns, *this ) { t = givePtr(ns)->geometry( xScale, yScale ); t.translate( dx, dy ); diff --git a/core/audioplayer.h b/core/audioplayer.h index bd9dda198..e5fd273ac 100644 --- a/core/audioplayer.h +++ b/core/audioplayer.h @@ -10,7 +10,7 @@ #ifndef _OKULAR_AUDIOPLAYER_H_ #define _OKULAR_AUDIOPLAYER_H_ -#include +#include #include diff --git a/core/form.h b/core/form.h index c2fe6f0cb..c8412cbc2 100644 --- a/core/form.h +++ b/core/form.h @@ -10,8 +10,8 @@ #ifndef _OKULAR_FORM_H_ #define _OKULAR_FORM_H_ -#include -#include +#include +#include #include diff --git a/core/generator.h b/core/generator.h index 93d30cf59..89fed8eca 100644 --- a/core/generator.h +++ b/core/generator.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include diff --git a/core/pagesize.h b/core/pagesize.h index 317571161..42ab7b2c5 100644 --- a/core/pagesize.h +++ b/core/pagesize.h @@ -14,7 +14,7 @@ #include #include -#include +#include namespace Okular { diff --git a/interfaces/configinterface.h b/interfaces/configinterface.h index fd0a1f114..8a8b2a9cc 100644 --- a/interfaces/configinterface.h +++ b/interfaces/configinterface.h @@ -12,6 +12,8 @@ #include +#include + class KConfigDialog; namespace Okular { diff --git a/interfaces/guiinterface.h b/interfaces/guiinterface.h index 2cc8430ba..efa175f85 100644 --- a/interfaces/guiinterface.h +++ b/interfaces/guiinterface.h @@ -12,6 +12,8 @@ #include +#include + class QToolBox; class KActionCollection; diff --git a/interfaces/printinterface.h b/interfaces/printinterface.h index c1a691e17..dd5c64324 100644 --- a/interfaces/printinterface.h +++ b/interfaces/printinterface.h @@ -12,6 +12,8 @@ #include +#include + class KPrintDialogPage; namespace Okular {