diff options
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp | 5 | ||||
-rw-r--r-- | tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel_p.h | 1 |
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: |