mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
DolphinPlacesModel: remove usage of alternativeApplicationName
This is now not needed anymore since `PlacesItemModel::cleanupBookmarks` (now removed) from https://phabricator.kde.org/D9333 has run for on users systems.
This commit is contained in:
parent
55a0a2fac4
commit
cff402356e
|
@ -13,8 +13,8 @@
|
|||
#include <QIcon>
|
||||
#include <QMimeData>
|
||||
|
||||
DolphinPlacesModel::DolphinPlacesModel(const QString &alternativeApplicationName, QObject *parent)
|
||||
: KFilePlacesModel(alternativeApplicationName, parent)
|
||||
DolphinPlacesModel::DolphinPlacesModel(QObject *parent)
|
||||
: KFilePlacesModel(parent)
|
||||
{
|
||||
connect(&Trash::instance(), &Trash::emptinessChanged, this, &DolphinPlacesModel::slotTrashEmptinessChanged);
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ bool DolphinPlacesModel::isTrash(const QModelIndex &index) const
|
|||
}
|
||||
|
||||
DolphinPlacesModelSingleton::DolphinPlacesModelSingleton()
|
||||
: m_placesModel(new DolphinPlacesModel(KAboutData::applicationData().componentName() + applicationNameSuffix()))
|
||||
: m_placesModel(new DolphinPlacesModel())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -133,9 +133,4 @@ DolphinPlacesModel *DolphinPlacesModelSingleton::placesModel() const
|
|||
return m_placesModel.data();
|
||||
}
|
||||
|
||||
QString DolphinPlacesModelSingleton::applicationNameSuffix()
|
||||
{
|
||||
return QStringLiteral("-places-panel");
|
||||
}
|
||||
|
||||
#include "moc_dolphinplacesmodelsingleton.cpp"
|
||||
|
|
|
@ -23,7 +23,7 @@ class DolphinPlacesModel : public KFilePlacesModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DolphinPlacesModel(const QString &alternativeApplicationName, QObject *parent = nullptr);
|
||||
explicit DolphinPlacesModel(QObject *parent = nullptr);
|
||||
~DolphinPlacesModel() override;
|
||||
|
||||
bool panelsLocked() const;
|
||||
|
@ -54,9 +54,6 @@ public:
|
|||
static DolphinPlacesModelSingleton &instance();
|
||||
|
||||
DolphinPlacesModel *placesModel() const;
|
||||
/** A suffix to the application-name of the stored bookmarks is
|
||||
added, which is only read by PlacesItemModel. */
|
||||
static QString applicationNameSuffix();
|
||||
|
||||
DolphinPlacesModelSingleton(const DolphinPlacesModelSingleton &) = delete;
|
||||
DolphinPlacesModelSingleton &operator=(const DolphinPlacesModelSingleton &) = delete;
|
||||
|
|
Loading…
Reference in New Issue
Block a user