From 140ccf1df8ae3b9958120881b4c34c0f230d5d54 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sun, 11 Nov 2018 17:35:13 +0100 Subject: [PlacesItemModel] Match KFilePlacesModel addPlaces() API This will allow to create a place visible only from Dolphin, by passing an `appName` to the KFilePlacesModel. CCBUG: 376619 --- src/panels/places/placesitemmodel.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/panels/places/placesitemmodel.h') diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index 58d0d55b2..dde3f3d7b 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -52,10 +52,8 @@ public: * @brief Create a new place entry in the bookmark file * and add it to the model */ - void createPlacesItem(const QString& text, - const QUrl& url, - const QString& iconName = QString(), - int after = -1); + void createPlacesItem(const QString& text, const QUrl& url, const QString& iconName = {}, const QString& appName = {}); + void createPlacesItem(const QString& text, const QUrl& url, const QString& iconName, const QString& appName, int after); PlacesItem* placesItem(int index) const; -- cgit v1.3.1