Store model as a DolphinPlacesModel

Because that's what it is. It's a subclass anyway but saves us some
casts in the future.
This commit is contained in:
Kai Uwe Broulik 2022-01-28 19:39:07 +01:00
parent cd6664c569
commit f645e6b4b2
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ DolphinPlacesModelSingleton &DolphinPlacesModelSingleton::instance()
return s_self;
}
KFilePlacesModel *DolphinPlacesModelSingleton::placesModel() const
DolphinPlacesModel *DolphinPlacesModelSingleton::placesModel() const
{
return m_placesModel.data();
}

View file

@ -47,7 +47,7 @@ class DolphinPlacesModelSingleton
public:
static DolphinPlacesModelSingleton& instance();
KFilePlacesModel *placesModel() const;
DolphinPlacesModel *placesModel() const;
/** A suffix to the application-name of the stored bookmarks is
added, which is only read by PlacesItemModel. */
static QString applicationNameSuffix();
@ -58,7 +58,7 @@ public:
private:
DolphinPlacesModelSingleton();
QScopedPointer<KFilePlacesModel> m_placesModel;
QScopedPointer<DolphinPlacesModel> m_placesModel;
};
#endif // DOLPHINPLACESMODELSINGLETON_H