diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-09 14:21:51 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-14 13:20:15 +0200 |
commit | 517e4f284e1808ecddc998d73b4b554880733381 (patch) | |
tree | 52e01d085fb0d7ca997ee1d25e1f9fa856fcd112 /tests/auto/qmlinterface/data/TestIcon.qml | |
parent | 1d8897b32148057246a779ad7cf18aeed1c2acc3 (diff) | |
download | qtlocation-517e4f284e1808ecddc998d73b4b554880733381.tar.gz |
Register QPlaceIcon as a QML value type
Make QPlaceIcon a gadget, and register it as a value type with the QML
engine. Remove declarative wrapper, and consolidate the documentation.
Adjust the tests and remove tests that verify that the type behaves like
an object. Initialize placeIcon properties as a grouped property, or via
a converter from QJSValue. That converter is a temporary solution to
enable tests, and can hopefully be removed once the QML engine supports
property-initialization of value types.
Task-number: QTBUG-106482
Change-Id: I2aa29102ee232afb3d71396bcd3288e2f99c0fc6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qmlinterface/data/TestIcon.qml')
-rw-r--r-- | tests/auto/qmlinterface/data/TestIcon.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/qmlinterface/data/TestIcon.qml b/tests/auto/qmlinterface/data/TestIcon.qml index 8053da61..1d8a10b6 100644 --- a/tests/auto/qmlinterface/data/TestIcon.qml +++ b/tests/auto/qmlinterface/data/TestIcon.qml @@ -29,8 +29,7 @@ import QtQuick import QtLocation -Icon { - Component.onCompleted: { - parameters.singleUrl = "http://www.example.com/test-icon.png" - } +Item { + id: testIcon + property icon icon: ({ parameters: { singleUrl: "http://www.example.com/test-icon.png" }}) } |