summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_ui/tst_map_itemview.qml
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-05-01 15:31:06 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-09 00:44:14 +0200
commit405ac7c7c4de6d26c2fd8a8f18e306d2526f3e55 (patch)
tree81baa9e9663e5828350b6b526c953d54c2fb10af /tests/auto/declarative_ui/tst_map_itemview.qml
parenta07fbe6e748ee47c1b8c38986ff798e373277627 (diff)
downloadqtlocation-405ac7c7c4de6d26c2fd8a8f18e306d2526f3e55.tar.gz
Fix inconsistent API for clear() and reset() in models.
Models in Qt Location contained a mixture of clear() and reset() methods. Simplify by only providing a reset() method in all models. Change-Id: I40505793d9b387322a455064fb74e91f8052831f Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'tests/auto/declarative_ui/tst_map_itemview.qml')
-rw-r--r--tests/auto/declarative_ui/tst_map_itemview.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative_ui/tst_map_itemview.qml b/tests/auto/declarative_ui/tst_map_itemview.qml
index 11b6a87d..8f557eeb 100644
--- a/tests/auto/declarative_ui/tst_map_itemview.qml
+++ b/tests/auto/declarative_ui/tst_map_itemview.qml
@@ -421,9 +421,9 @@ Item {
routeQuery.numberAlternativeRoutes = 3
routeModel.update();
compare(mapForTestingRouteModel.mapItems.length, 3)
- routeModel.clear();
+ routeModel.reset();
compare(mapForTestingRouteModel.mapItems.length, 0)
- routeModel.clear(); // clear empty model
+ routeModel.reset(); // clear empty model
routeQuery.numberAlternativeRoutes = 3
routeModel.update();
compare(mapForTestingRouteModel.mapItems.length, 3)