diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-16 13:06:10 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-22 18:09:00 +0200 |
commit | 8af951a0832d3262459c6e75ef2522ca0077c29e (patch) | |
tree | da3fa188da299d378f5de95f259781a995d61f0b | |
parent | 45887d30ba78aad8a4e57dcc0c56cd91d842eae8 (diff) | |
download | qtlocation-8af951a0832d3262459c6e75ef2522ca0077c29e.tar.gz |
Cleanup: Move PlaceCategoryNode into only class using it
Change-Id: I4815b70b6b514c668fb8316da1ffa01b1ca2a3b9
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-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); |