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-23 10:42:42 +0200 |
commit | dff85c6ccc1007795b50ad67db18d1cdff6e552f (patch) | |
tree | 34d690fd3e0dc21080aa3094b8a38f95d1974a6b | |
parent | 16b5755de191e6d4f162d6f26b5598a26872fc7a (diff) |
Cleanup: Move PlaceCategoryNode into only class using it
Change-Id: I4815b70b6b514c668fb8316da1ffa01b1ca2a3b9
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 8af951a0832d3262459c6e75ef2522ca0077c29e)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@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); |