diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-25 17:05:57 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-26 07:34:19 +0000 |
commit | 86f546dc658106eab9ef489b5473a5407ff8c3c0 (patch) | |
tree | ed473cb9f016d9716b3bc38a93d30787d33d3351 /tests/auto/qquickiconimage/data/fileSelectors.qml | |
parent | 8b9f4364ba05c51ba4a0d8edcd53ea411824a590 (diff) |
QQuickIconImage: fix file selectors for named theme icons
QQuickIconImage needs to be associated with a QML context to be able
to call QQmlContext::resolvedUrl(), which in turn passes it to the URL
interceptor aka. QQmlFileSelector.
Change-Id: Iff34fb8316c765ac0ff04d5d7a6ab23002b31385
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qquickiconimage/data/fileSelectors.qml')
-rw-r--r-- | tests/auto/qquickiconimage/data/fileSelectors.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/qquickiconimage/data/fileSelectors.qml b/tests/auto/qquickiconimage/data/fileSelectors.qml new file mode 100644 index 00000000..e3ed3857 --- /dev/null +++ b/tests/auto/qquickiconimage/data/fileSelectors.qml @@ -0,0 +1,16 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.3 +import QtQuick.Controls.impl 2.3 + +Row { + width: 200 + height: 200 + + IconImage { + name: "appointment-new" + sourceSize: Qt.size(22, 22) + } + Image { + source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png" + } +} |