]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placesitemmodel.h
Use PlacesItemModel instead of KFilePlacesModel
[dolphin.git] / src / panels / places / placesitemmodel.h
index b850f356fb74030c9202cddbaf05bba9251fc21d..89a111730bdc491a89c5a1f92ff311e119a8b790 100644 (file)
@@ -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;