summaryrefslogtreecommitdiff
path: root/tests/plugins/declarativetestplugin
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@nokia.com>2011-12-12 16:30:53 +0200
committerQt by Nokia <qt-info@nokia.com>2011-12-13 10:50:46 +0100
commit73790e789c095f06ea4467e501cea315d758a4f5 (patch)
tree53acf95dbe77a51e879e7ebd87eb3f54e5b2e92a /tests/plugins/declarativetestplugin
parent9655258398566a408a90d820ad9988b437b8de3f (diff)
downloadqtlocation-73790e789c095f06ea4467e501cea315d758a4f5.tar.gz
First set of map(-item, -view) quick autotests.
Fixed misc findings. Change-Id: I8dce4e6ac557a4a2abaff0c0676c62c383b1e901 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
Diffstat (limited to 'tests/plugins/declarativetestplugin')
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp5
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
index 12718054..0455d09a 100644
--- a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
+++ b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp
@@ -196,6 +196,11 @@ void QDeclarativeLocationTestModel::repopulate()
endResetModel();
}
+void QDeclarativeLocationTestModel::update()
+{
+ scheduleRepopulation();
+}
+
void QDeclarativeLocationTestModel::reset()
{
if (timer_.isActive())
diff --git a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h
index 2fb2296f..762db365 100644
--- a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h
+++ b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h
@@ -105,6 +105,7 @@ public:
//Q_INVOKABLE void clear();
Q_INVOKABLE void reset();
+ Q_INVOKABLE void update();
//Q_INVOKABLE void reset();
signals: