aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-01-31 12:58:32 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-01-31 12:47:18 +0000
commit283e95aaf299b6bb320dbacabb099d91f070f116 (patch)
tree725b304bafed6ba861523e65c42934a87b2650d0 /src/quickcontrols2
parentdb55ad70edccf9041918a99f982a55db7136d5ab (diff)
Fix build with -no-feature-settings
Change-Id: I204c50539288df16c4d4010e91c8ecc60f202ec6 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/quickcontrols2')
-rw-r--r--src/quickcontrols2/qquickstyle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickcontrols2/qquickstyle.cpp b/src/quickcontrols2/qquickstyle.cpp
index f6539ffc..184cbfc7 100644
--- a/src/quickcontrols2/qquickstyle.cpp
+++ b/src/quickcontrols2/qquickstyle.cpp
@@ -174,6 +174,7 @@ struct QQuickStyleSpec
style = QString::fromLatin1(qgetenv("QT_QUICK_CONTROLS_STYLE"));
if (fallbackStyle.isEmpty())
setFallbackStyle(QString::fromLatin1(qgetenv("QT_QUICK_CONTROLS_FALLBACK_STYLE")), "QT_QUICK_CONTROLS_FALLBACK_STYLE");
+#if QT_CONFIG(settings)
if (style.isEmpty() || fallbackStyle.isEmpty()) {
QSharedPointer<QSettings> settings = QQuickStyleAttached::settings(QStringLiteral("Controls"));
if (settings) {
@@ -183,6 +184,7 @@ struct QQuickStyleSpec
setFallbackStyle(settings->value(QStringLiteral("FallbackStyle")).toString(), ":/qtquickcontrols2.conf");
}
}
+#endif
// resolve a path relative to the config
QString configPath = QFileInfo(resolveConfigFilePath()).path();