summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qstylefactory.cpp')
-rw-r--r--src/widgets/styles/qstylefactory.cpp30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/widgets/styles/qstylefactory.cpp b/src/widgets/styles/qstylefactory.cpp
index 8f4f014ac8..378448f33c 100644
--- a/src/widgets/styles/qstylefactory.cpp
+++ b/src/widgets/styles/qstylefactory.cpp
@@ -46,12 +46,6 @@
#include "qapplication.h"
#include "qwindowsstyle.h"
-#ifndef QT_NO_STYLE_PLASTIQUE
-#include "qplastiquestyle.h"
-#endif
-#ifndef QT_NO_STYLE_CLEANLOOKS
-#include "qcleanlooksstyle.h"
-#endif
#ifndef QT_NO_STYLE_FUSION
#include "qfusionstyle.h"
#endif
@@ -96,9 +90,9 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
plugin (see QStylePlugin).
The valid keys can be retrieved using the keys()
- function. Typically they include "windows",
- "plastique" and "cleanlooks". Depending on the platform,
- "windowsxp", "windowsvista" and "macintosh" may be available.
+ function. Typically they include "windows" and "fusion".
+ Depending on the platform, "windowsxp", "windowsvista", "gtk"
+ and "macintosh" may be available.
Note that keys are case insensitive.
\sa QStyle
@@ -144,21 +138,11 @@ QStyle *QStyleFactory::create(const QString& key)
ret = new QWindowsVistaStyle;
else
#endif
-#ifndef QT_NO_STYLE_PLASTIQUE
- if (style == QLatin1String("plastique"))
- ret = new QPlastiqueStyle;
- else
-#endif
#ifndef QT_NO_STYLE_FUSION
if (style == QLatin1String("fusion"))
ret = new QFusionStyle;
else
#endif
-#ifndef QT_NO_STYLE_CLEANLOOKS
- if (style == QLatin1String("cleanlooks"))
- ret = new QCleanlooksStyle;
- else
-#endif
#ifndef QT_NO_STYLE_GTK
if (style == QLatin1String("gtk") || style == QLatin1String("gtk+"))
ret = new QGtkStyle;
@@ -222,10 +206,6 @@ QStringList QStyleFactory::keys()
(QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based)))
list << QLatin1String("WindowsVista");
#endif
-#ifndef QT_NO_STYLE_PLASTIQUE
- if (!list.contains(QLatin1String("Plastique")))
- list << QLatin1String("Plastique");
-#endif
#ifndef QT_NO_STYLE_GTK
if (!list.contains(QLatin1String("GTK+")))
list << QLatin1String("GTK+");
@@ -234,10 +214,6 @@ QStringList QStyleFactory::keys()
if (!list.contains(QLatin1String("Fusion")))
list << QLatin1String("Fusion");
#endif
-#ifndef QT_NO_STYLE_CLEANLOOKS
- if (!list.contains(QLatin1String("Cleanlooks")))
- list << QLatin1String("Cleanlooks");
-#endif
#ifndef QT_NO_STYLE_MAC
QString mstyle = QLatin1String("Macintosh");
# ifdef Q_WS_MAC