diff options
Diffstat (limited to 'tests/auto/qmlinterface/data')
-rw-r--r-- | tests/auto/qmlinterface/data/TestIcon.qml | 7 | ||||
-rw-r--r-- | tests/auto/qmlinterface/data/TestPlace.qml | 2 | ||||
-rw-r--r-- | tests/auto/qmlinterface/data/TestSupplier.qml | 2 |
3 files changed, 5 insertions, 6 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" }}) } diff --git a/tests/auto/qmlinterface/data/TestPlace.qml b/tests/auto/qmlinterface/data/TestPlace.qml index 1cce22af..a3c40c14 100644 --- a/tests/auto/qmlinterface/data/TestPlace.qml +++ b/tests/auto/qmlinterface/data/TestPlace.qml @@ -44,7 +44,7 @@ Place { ] location: TestLocation { } ratings: ({ average: 3.5, maximum: 5.0, count: 10 }) - icon: TestIcon { } + icon: ({ parameters: { singleUrl: "http://www.example.com/test-icon.png" }}) supplier: TestSupplier { } visibility: Place.PrivateVisibility } diff --git a/tests/auto/qmlinterface/data/TestSupplier.qml b/tests/auto/qmlinterface/data/TestSupplier.qml index 0a682fdf..7f4cc451 100644 --- a/tests/auto/qmlinterface/data/TestSupplier.qml +++ b/tests/auto/qmlinterface/data/TestSupplier.qml @@ -32,5 +32,5 @@ Supplier { name: "Test supplier" supplierId: "test-supplier-id" url: "http://www.example.com/test-supplier" - icon: TestIcon { } + icon: ({ parameters: { singleUrl: "http://www.example.com/test-icon.png" }}) } |