summaryrefslogtreecommitdiffstats
path: root/src/controls/Private/qquickcontrolsettings.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-09-18 16:48:25 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-09-19 12:24:18 +0200
commit332ef31f0d1645eded5588729176134bbdcd38a2 (patch)
tree71091684801a123a6b748eb21a51d813943bd3b1 /src/controls/Private/qquickcontrolsettings.cpp
parent85114be06703e7675b6c780776e45c14a69a5c2d (diff)
Default to Text.QtRendering on mobile platforms
Change-Id: I9aa23691aa8bb4659545ed43c1506128a639ff6c Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/controls/Private/qquickcontrolsettings.cpp')
-rw-r--r--src/controls/Private/qquickcontrolsettings.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/controls/Private/qquickcontrolsettings.cpp b/src/controls/Private/qquickcontrolsettings.cpp
index ee1b57dfe..f05df0d5b 100644
--- a/src/controls/Private/qquickcontrolsettings.cpp
+++ b/src/controls/Private/qquickcontrolsettings.cpp
@@ -82,6 +82,15 @@ bool QQuickControlSettings::hasTouchScreen() const
#endif
}
+bool QQuickControlSettings::isMobile() const
+{
+#if defined(Q_OS_IOS) || defined(Q_OS_ANDROID) || defined(Q_OS_BLACKBERRY) || defined(Q_OS_QNX) || defined(Q_OS_WINRT)
+ return true;
+#else
+ return false;
+#endif
+}
+
static QString styleImportPath(QQmlEngine *engine, const QString &styleName)
{
QString path = qgetenv("QT_QUICK_CONTROLS_STYLE");