diff options
author | juhvu <qt-info@nokia.com> | 2010-09-03 10:16:56 +1000 |
---|---|---|
committer | juhvu <qt-info@nokia.com> | 2010-09-03 10:16:56 +1000 |
commit | 8b7511c73019251d0361a2baca20ecb211174e1b (patch) | |
tree | 05bc07d9fb16cf87809ad56f872ee4f4ffedba79 /plugins/declarative/location/qdeclarativelandmarkmodel_p.h | |
parent | d3d04fe923839c249dcd1a70432bb49cfd1ede83 (diff) |
declarative landmark update (support for declarative list property of
landmarks and categories)
Diffstat (limited to 'plugins/declarative/location/qdeclarativelandmarkmodel_p.h')
-rw-r--r-- | plugins/declarative/location/qdeclarativelandmarkmodel_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/declarative/location/qdeclarativelandmarkmodel_p.h b/plugins/declarative/location/qdeclarativelandmarkmodel_p.h index 2f03b5e8ed..7010abfa31 100644 --- a/plugins/declarative/location/qdeclarativelandmarkmodel_p.h +++ b/plugins/declarative/location/qdeclarativelandmarkmodel_p.h @@ -126,16 +126,17 @@ public: QDeclarativeLandmarkFilterBase* filter(); void setFilter(QDeclarativeLandmarkFilterBase* filter); + // For testing purpose to access ordered data + QList<QLandmark> landmarkList(); QDeclarativeListProperty<QDeclarativeLandmark> landmarks(); - - Q_INVOKABLE QList<QDeclarativeLandmark*> landmarkList() const; // Testing purposes - Q_INVOKABLE void startUpdate(); - static void landmarks_append(QDeclarativeListProperty<QDeclarativeLandmark>* prop, QDeclarativeLandmark* landmark); static int landmarks_count(QDeclarativeListProperty<QDeclarativeLandmark>* prop); static QDeclarativeLandmark* landmarks_at(QDeclarativeListProperty<QDeclarativeLandmark>* prop, int index); static void landmarks_clear(QDeclarativeListProperty<QDeclarativeLandmark>* prop); +protected: + Q_INVOKABLE void startUpdate(); + signals: void countChanged(); void filterChanged(); |