From f0debd937766045c77dea5f2f5255de89f7b2697 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 8 Sep 2011 20:28:41 +0200 Subject: Version control: show pixmap overlays for the version state --- src/kitemviews/kfileitemlistwidget.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/kfileitemlistwidget.h') diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index 0332f1159..a16e75a8e 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -55,6 +55,9 @@ public: protected: void setTextColor(const QColor& color); QColor textColor() const; + + void setOverlay(const QPixmap& overlay); + QPixmap overlay() const; virtual void dataChanged(const QHash& current, const QSet& roles = QSet()); virtual void visibleRolesChanged(const QHash& current, const QHash& previous); @@ -116,8 +119,11 @@ private: QList m_sortedVisibleRoles; QRectF m_expansionArea; - QColor* m_customTextColor; + + QColor m_customTextColor; QColor m_additionalInfoTextColor; + + QPixmap m_overlay; }; #endif -- cgit v1.3.1