diff options
author | juhvu <qt-info@nokia.com> | 2010-09-07 11:14:42 +1000 |
---|---|---|
committer | juhvu <qt-info@nokia.com> | 2010-09-07 11:14:42 +1000 |
commit | 220f78231ff8b804080193942467bbb6bd99de84 (patch) | |
tree | feaf1d8219ec2d4561b0672e2224be5fb5c2ce64 /plugins/declarative/location/qdeclarativelandmarkmodel_p.h | |
parent | bb784bb93fc34d5f6a6e0b98fcddfae650659ddb (diff) |
Only one role available in declarative landmark model
Diffstat (limited to 'plugins/declarative/location/qdeclarativelandmarkmodel_p.h')
-rw-r--r-- | plugins/declarative/location/qdeclarativelandmarkmodel_p.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/declarative/location/qdeclarativelandmarkmodel_p.h b/plugins/declarative/location/qdeclarativelandmarkmodel_p.h index dddd085615..ad3cc260ff 100644 --- a/plugins/declarative/location/qdeclarativelandmarkmodel_p.h +++ b/plugins/declarative/location/qdeclarativelandmarkmodel_p.h @@ -100,18 +100,10 @@ public: int rowCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role) const; - // Roles for exposing data via model + // Roles for exposing data via model. Only one role because + // everything can be accessed via QDeclarativeLandmark enum Roles { - NameRole = Qt::UserRole + 500, // Check - PhoneNumberRole, - DescriptionRole, - RadiusRole, - IconSourceRole, - UrlRole, - LatitudeRole, - LongitudeRole, - AltitudeRole, - LandmarkRole + LandmarkRole = Qt::UserRole + 500, }; enum SortOrder { AscendingOrder = Qt::AscendingOrder, |