mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
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:
parent
cd6664c569
commit
f645e6b4b2
|
@ -70,7 +70,7 @@ DolphinPlacesModelSingleton &DolphinPlacesModelSingleton::instance()
|
|||
return s_self;
|
||||
}
|
||||
|
||||
KFilePlacesModel *DolphinPlacesModelSingleton::placesModel() const
|
||||
DolphinPlacesModel *DolphinPlacesModelSingleton::placesModel() const
|
||||
{
|
||||
return m_placesModel.data();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue