diff options
author | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2017-05-29 10:21:38 +0300 |
---|---|---|
committer | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2017-06-06 13:19:37 +0000 |
commit | d7b45f7dc1d5f28ecdb022c5a4c7673bc55257c8 (patch) | |
tree | 6bab8775d94c5964f79a6a246e3674ccfdb21ad6 /tests/auto/quick/qquickapplication/data | |
parent | 7ab6f0dda1cbe4ffd154226996482bc6b092690b (diff) |
Add Qt.platform.pluginName property
This exposes QGuiApplication::platformName() for qml. It is
required at least for tests that are run on the "offscreen" platform
(armv7 tests on qemu).
[ChangeLog][QtQuick] Added Qt.platform.pluginName property.
Task-number: QTBUG-60268
Change-Id: Ie55a282485d4d76ffe7ed8e77359ad7183f579c2
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickapplication/data')
-rw-r--r-- | tests/auto/quick/qquickapplication/data/tst_platformname.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickapplication/data/tst_platformname.qml b/tests/auto/quick/qquickapplication/data/tst_platformname.qml new file mode 100644 index 0000000000..1bcd66ac8d --- /dev/null +++ b/tests/auto/quick/qquickapplication/data/tst_platformname.qml @@ -0,0 +1,6 @@ +import QtQuick 2.0; + +Item { + id: root; + property string platformName: Qt.platform.pluginName +} |