summaryrefslogtreecommitdiffstats
path: root/src/private/qquickcontrolsettings.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-04-17 18:15:07 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-19 08:08:10 +0200
commitb00dd02a85c31cf211c4b88ba03b3ff52109f9d9 (patch)
tree29d7fe092d7ec705c62c14183773230b7fb0c20b /src/private/qquickcontrolsettings.cpp
parent06047189b17f02f0b37826b568d266cff1ad4870 (diff)
Improved styling for Qml style
This is only the first step but already looking a bit nicer. Change-Id: I79f027b3411245ffe2fe654b4ca6eccbdf6a147b Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/private/qquickcontrolsettings.cpp')
-rw-r--r--src/private/qquickcontrolsettings.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/private/qquickcontrolsettings.cpp b/src/private/qquickcontrolsettings.cpp
index 3b3744fcc..3b7d5506b 100644
--- a/src/private/qquickcontrolsettings.cpp
+++ b/src/private/qquickcontrolsettings.cpp
@@ -56,9 +56,11 @@ QString QQuickControlSettings::theme()
if (currentTheme.isEmpty()) {
currentTheme = QLatin1String("Styles");
#ifndef QT_NO_WIDGETS
- // Only enable QStyle support when we are using QApplication
- if (QCoreApplication::instance()->inherits("QApplication"))
- currentTheme = QLatin1String("Styles/Desktop");
+ //Only enable QStyle support when we are using QApplication
+ if (QCoreApplication::instance()->inherits("QApplication")) {
+ if (qgetenv("QT_QUICK_CONTROLS_NO_WIDGETS").toInt() < 1)
+ currentTheme = QLatin1String("Styles/Desktop");
+ }
#endif
}
return currentTheme;