From d47d83c9ae484d489e3f3bb6be775e5bb002e0ab Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 14 May 2012 22:08:32 +0200 Subject: Let the places-item determine the group itself Related improvements: When loading the bookmarks assure in any case that items having the same group are inserted as one single group. --- src/panels/places/placesitem.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/panels/places/placesitem.h') diff --git a/src/panels/places/placesitem.h b/src/panels/places/placesitem.h index fc6a5f078..81fbe5c60 100644 --- a/src/panels/places/placesitem.h +++ b/src/panels/places/placesitem.h @@ -38,6 +38,14 @@ class PlacesItem : public KStandardItem { public: + enum GroupType + { + PlacesType, + SearchForType, + RecentlyAccessedType, + DevicesType + }; + explicit PlacesItem(const KBookmark& bookmark, PlacesItem* parent = 0); explicit PlacesItem(const PlacesItem& item); virtual ~PlacesItem(); @@ -59,6 +67,8 @@ public: void setBookmark(const KBookmark& bookmark); KBookmark bookmark() const; + GroupType groupType() const; + static KBookmark createBookmark(KBookmarkManager* manager, const QString& text, const KUrl& url, -- cgit v1.3