diff options
| author | Peter Penz <[email protected]> | 2012-05-14 22:08:32 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-14 22:09:09 +0200 |
| commit | d47d83c9ae484d489e3f3bb6be775e5bb002e0ab (patch) | |
| tree | 7eb2463dfdfea9dc080a5cc98355a912ca981c82 /src/panels/places/placesitem.h | |
| parent | f74c72b9652ea4613156cc58b681c9244395cf72 (diff) | |
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.
Diffstat (limited to 'src/panels/places/placesitem.h')
| -rw-r--r-- | src/panels/places/placesitem.h | 10 |
1 files changed, 10 insertions, 0 deletions
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, |
