summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-16 13:06:10 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-22 18:09:00 +0200
commit8af951a0832d3262459c6e75ef2522ca0077c29e (patch)
treeda3fa188da299d378f5de95f259781a995d61f0b
parent45887d30ba78aad8a4e57dcc0c56cd91d842eae8 (diff)
downloadqtlocation-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.h15
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);