diff --git a/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp b/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp index adcfcbfffa5..99c35b2c3fe 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp @@ -44,9 +44,12 @@ #include #include #include -#include -#include - +#if QT_VERSION >= 0x050000 +# include +#else +# include +# include +#endif #include @@ -61,11 +64,13 @@ class CleanLooksSingleton private: static CleanLooksSingleton *m_instance; -#ifdef Q_OS_MAC +#if QT_VERSION >= 0x050000 + QFusionStyle m_style; +#elif defined(Q_OS_MAC) QPlastiqueStyle m_style; #else QCleanlooksStyle m_style; -#endif //Q_OS_MAC +#endif CleanLooksSingleton() {} CleanLooksSingleton( const CleanLooksSingleton& );