┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemmodel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-06-02 15:02:34 +0200
committerPeter Penz <[email protected]>2012-06-02 15:03:22 +0200
commit12215d6f0f7768fc943347a349d9817844e0528a (patch)
tree76db3b0f6c32900b397246de3c8f731c703708f3 /src/panels/places/placesitemmodel.h
parent665c44821e32ba4bdfcd94889eb17e08ac25a315 (diff)
Use PlacesItemModel instead of KFilePlacesModel
This allows inserting items to the corresponding group.
Diffstat (limited to 'src/panels/places/placesitemmodel.h')
-rw-r--r--src/panels/places/placesitemmodel.h11
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;