diff options
Diffstat (limited to 'src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h')
-rw-r--r-- | src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h b/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h index 6ae71b08..225f6241 100644 --- a/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h +++ b/src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h @@ -71,14 +71,6 @@ class QGeoServiceProvider; class QPlaceManager; class QPlaceReply; -class PlaceCategoryNode -{ -public: - QString parentId; - QStringList childIds; - QSharedPointer<QDeclarativeCategory> declCategory; -}; - class Q_LOCATION_PRIVATE_EXPORT QDeclarativeSupportedCategoriesModel : public QAbstractItemModel, public QQmlParserStatus { Q_OBJECT @@ -146,6 +138,13 @@ private Q_SLOTS: void connectNotificationSignals(); private: + struct PlaceCategoryNode + { + QString parentId; + QStringList childIds; + QSharedPointer<QDeclarativeCategory> declCategory; + }; + QStringList populateCategories(QPlaceManager *, const QPlaceCategory &parent); QModelIndex index(const QString &categoryId) const; int rowToAddChild(PlaceCategoryNode *, const QPlaceCategory &category); |