From d76b113ad10fe207ef23d5dd44c63ee076c71521 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 1 May 2012 23:11:06 +0200 Subject: Places Panel: Allow hiding of items Related changes: - Animate changed items for the details-view in case it is not expandable - Remove the hardcoded "isHidden"-code in KStandardItemListWidget and allow derived widgets to define themselves what means "hidden" within their context. The current code needs a lot of bugfixing, but lets make this in smaller steps during the next days... --- src/kitemviews/kstandarditem.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kitemviews/kstandarditem.h') diff --git a/src/kitemviews/kstandarditem.h b/src/kitemviews/kstandarditem.h index a108572a7..3628989a2 100644 --- a/src/kitemviews/kstandarditem.h +++ b/src/kitemviews/kstandarditem.h @@ -44,6 +44,7 @@ public: explicit KStandardItem(KStandardItem* parent = 0); explicit KStandardItem(const QString& text, KStandardItem* parent = 0); KStandardItem(const QIcon& icon, const QString& text, KStandardItem* parent = 0); + KStandardItem(const KStandardItem& item); virtual ~KStandardItem(); /** @@ -70,7 +71,9 @@ public: void setParent(KStandardItem* parent); KStandardItem* parent() const; + void setData(const QHash& values); QHash data() const; + QList children() const; private: -- cgit v1.3.1