diff options
Diffstat (limited to 'src/panels/places/placesitemmodel.h')
| -rw-r--r-- | src/panels/places/placesitemmodel.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index b850f356f..89a111730 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -69,7 +69,7 @@ public: */ PlacesItem* createPlacesItem(const QString& text, const KUrl& url, - const QString& iconName); + const QString& iconName = QString()); PlacesItem* placesItem(int index) const; @@ -99,6 +99,15 @@ public: */ int closestItem(const KUrl& url) const; + /** + * Appends the item \a item as last element of the group + * the item belongs to. If no item with the same group is + * present, the item gets appended as last element of the + * model. PlacesItemModel takes the ownership + * of the item. + */ + void appendItemToGroup(PlacesItem* item); + QAction* ejectAction(int index) const; QAction* teardownAction(int index) const; |
