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/kstandarditemlistwidget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kitemviews/kstandarditemlistwidget.h') diff --git a/src/kitemviews/kstandarditemlistwidget.h b/src/kitemviews/kstandarditemlistwidget.h index 1bd44e2f6..d942b89a9 100644 --- a/src/kitemviews/kstandarditemlistwidget.h +++ b/src/kitemviews/kstandarditemlistwidget.h @@ -108,6 +108,12 @@ protected: */ virtual bool isRoleRightAligned(const QByteArray& role) const; + /** + * @return True if the item should be visually marked as hidden item. Per default + * false is returned. + */ + virtual bool isHidden() const; + void setTextColor(const QColor& color); QColor textColor() const; -- cgit v1.3.1