This is now not needed anymore since `PlacesItemModel::cleanupBookmarks` (now removed) from https://phabricator.kde.org/D9333 has run for on users systems.
#include <QIcon>
#include <QMimeData>
#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);
}
{
connect(&Trash::instance(), &Trash::emptinessChanged, this, &DolphinPlacesModel::slotTrashEmptinessChanged);
}
}
DolphinPlacesModelSingleton::DolphinPlacesModelSingleton()
}
DolphinPlacesModelSingleton::DolphinPlacesModelSingleton()
- : m_placesModel(new DolphinPlacesModel(KAboutData::applicationData().componentName() + applicationNameSuffix()))
+ : m_placesModel(new DolphinPlacesModel())
return m_placesModel.data();
}
return m_placesModel.data();
}
-QString DolphinPlacesModelSingleton::applicationNameSuffix()
-{
- return QStringLiteral("-places-panel");
-}
-
#include "moc_dolphinplacesmodelsingleton.cpp"
#include "moc_dolphinplacesmodelsingleton.cpp"
- explicit DolphinPlacesModel(const QString &alternativeApplicationName, QObject *parent = nullptr);
+ explicit DolphinPlacesModel(QObject *parent = nullptr);
~DolphinPlacesModel() override;
bool panelsLocked() const;
~DolphinPlacesModel() override;
bool panelsLocked() const;
static DolphinPlacesModelSingleton &instance();
DolphinPlacesModel *placesModel() const;
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;
DolphinPlacesModelSingleton(const DolphinPlacesModelSingleton &) = delete;
DolphinPlacesModelSingleton &operator=(const DolphinPlacesModelSingleton &) = delete;