aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlplatform.cpp
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-05-05 20:18:56 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-06 13:39:21 +0200
commit5ded7334023f82a3096b7bb92bee7947d1fc00f5 (patch)
tree23d962c00528a01b09b5e00b46362630f759f2fa /src/qml/qml/qqmlplatform.cpp
parent24bd75e08a0b066b9908c1daec6802f6cbb31ac4 (diff)
Return "winphone" and "winrt" for Qt.platform.os when appropriate
Task-number: QTBUG-38532 Change-Id: I33b4fe5bb61baf9df3ca472424ca631172bf70fb Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlplatform.cpp')
-rw-r--r--src/qml/qml/qqmlplatform.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlplatform.cpp b/src/qml/qml/qqmlplatform.cpp
index 04862379be..37895cf2a1 100644
--- a/src/qml/qml/qqmlplatform.cpp
+++ b/src/qml/qml/qqmlplatform.cpp
@@ -69,6 +69,10 @@ QString QQmlPlatform::os()
return QLatin1String("osx");
#elif defined(Q_OS_WINCE)
return QLatin1String("wince");
+#elif defined(Q_OS_WINPHONE)
+ return QStringLiteral("winphone");
+#elif defined(Q_OS_WINRT)
+ return QStringLiteral("winrt");
#elif defined(Q_OS_WIN)
return QLatin1String("windows");
#elif defined(Q_OS_LINUX)