summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-08-16 13:32:43 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-28 10:07:49 +0200
commit059388adce26be48868cd741b4c5d751298fb4d8 (patch)
tree1a8a41c0f280b7ab3c502b49527bd609d1c0884a /tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml
parent7dd46f8c96a4bdaca2809ff97b773f358392516f (diff)
Convert GeoShape, GeoRectangle and GeoCircle into QML value types.v5.0.0-beta1
This replaces the GeoShape, GeoRectangle and GeoCircle QML elements with value types. A value type is a better fit for shape types. It is very similar to a rect with some utility functions. Declare QGeoShape, QGeoRectangle and QGeoCircle as movable types. Update documentation. Change-Id: Id6c48e1e841c68f2f0c5c6a9c4a6580a57e2dfb6 Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml')
-rw-r--r--tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml b/tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml
index b2c8b73e..bc4fbd80 100644
--- a/tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml
+++ b/tests/auto/declarative_core/tst_placesearchsuggestionmodel.qml
@@ -64,23 +64,15 @@ TestCase {
name: "nonExistantName"
}
- Plugin {
- id: uninitializedPlugin
- }
-
- GeoCircle {
- id: testSearchArea
- center {
- latitude: 10
- longitude: 20
- }
- radius: 5000
+ Plugin {
+ id: uninitializedPlugin
}
function test_setAndGet_data() {
+ var testSearchArea = QtLocation.circle(QtLocation.coordinate(10, 20), 5000);
return [
{ tag: "plugin", property: "plugin", signal: "pluginChanged", value: testPlugin },
- { tag: "searchArea", property: "searchArea", signal: "searchAreaChanged", value: testSearchArea },
+ { tag: "searchArea", property: "searchArea", signal: "searchAreaChanged", value: testSearchArea, reset: QtLocation.shape() },
{ tag: "offset", property: "offset", signal: "offsetChanged", value: 10, reset: 0 },
{ tag: "limit", property: "limit", signal: "limitChanged", value: 10, reset: -1 },