┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitem.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-14 22:08:32 +0200
committerPeter Penz <[email protected]>2012-05-14 22:09:09 +0200
commitd47d83c9ae484d489e3f3bb6be775e5bb002e0ab (patch)
tree7eb2463dfdfea9dc080a5cc98355a912ca981c82 /src/panels/places/placesitem.h
parentf74c72b9652ea4613156cc58b681c9244395cf72 (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.h10
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,