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.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/kitemviews/kstandarditem.cpp') diff --git a/src/kitemviews/kstandarditem.cpp b/src/kitemviews/kstandarditem.cpp index 1754c531b..e7655f9c8 100644 --- a/src/kitemviews/kstandarditem.cpp +++ b/src/kitemviews/kstandarditem.cpp @@ -48,6 +48,14 @@ KStandardItem::KStandardItem(const QIcon& icon, const QString& text, KStandardIt setText(text); } +KStandardItem::KStandardItem(const KStandardItem& item) : + m_parent(item.m_parent), + m_children(item.m_children), + m_model(item.m_model), + m_data(item.m_data) +{ +} + KStandardItem::~KStandardItem() { } @@ -103,6 +111,11 @@ KStandardItem* KStandardItem::parent() const return m_parent; } +void KStandardItem::setData(const QHash& values) +{ + m_data = values; +} + QHash KStandardItem::data() const { return m_data; -- cgit v1.3