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.h | |
| 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.h')
| -rw-r--r-- | src/kitemviews/kstandarditem.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<QByteArray, QVariant>& values); QHash<QByteArray, QVariant> data() const; + QList<KStandardItem*> children() const; private: |
