summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-28 18:26:24 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-29 14:02:20 +0200
commit6838f2f201f8a53daf3c9f2da168875cb5900b7e (patch)
tree06cc978d82d1da1ee63c375346fd8e1bbf4b9922
parent5163d524dbad1d2c9f8f3cfd1d9cccbdcce98708 (diff)
downloadqtquickcontrols-6838f2f201f8a53daf3c9f2da168875cb5900b7e.tar.gz
Make the default style "Base" when built without widgets support
It is possible to have qtwidgets installed but qtquickcontrols built without a dependency to qtwidgets. Change-Id: Ic6f640e352984d38d9020011078fe061ff46acac Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r--src/controls/Private/qquickcontrolsettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Private/qquickcontrolsettings.cpp b/src/controls/Private/qquickcontrolsettings.cpp
index 2f86a4a1..92383480 100644
--- a/src/controls/Private/qquickcontrolsettings.cpp
+++ b/src/controls/Private/qquickcontrolsettings.cpp
@@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE
static QString defaultStyleName()
{
//Only enable QStyle support when we are using QApplication
-#if !defined(Q_OS_IOS) && !defined(Q_OS_ANDROID) && !defined(Q_OS_BLACKBERRY) && !defined(Q_OS_QNX) && !defined(Q_OS_WINRT)
+#if defined(QT_WIDGETS_LIB) && !defined(Q_OS_IOS) && !defined(Q_OS_ANDROID) && !defined(Q_OS_BLACKBERRY) && !defined(Q_OS_QNX) && !defined(Q_OS_WINRT)
if (QCoreApplication::instance()->inherits("QApplication"))
return QLatin1String("Desktop");
#endif