diff options
| author | Peter Penz <[email protected]> | 2012-05-01 23:11:06 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-01 23:14:52 +0200 |
| commit | d76b113ad10fe207ef23d5dd44c63ee076c71521 (patch) | |
| tree | 2cda5384e4036f4f048392548ea75243ce6b7fc2 /src/kitemviews/kstandarditem.cpp | |
| parent | 6a7cb5ff7d29cc636b432a96e0db9ef9f9030527 (diff) | |
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...
Diffstat (limited to 'src/kitemviews/kstandarditem.cpp')
| -rw-r--r-- | src/kitemviews/kstandarditem.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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<QByteArray, QVariant>& values) +{ + m_data = values; +} + QHash<QByteArray, QVariant> KStandardItem::data() const { return m_data; |
