From b8c718a6fd9810f9e91303ed50402de4ab417a49 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 6 Sep 2011 23:42:42 +0200 Subject: First step to reactivate version control plugin functionality - Add a DolphinFileItemListWidget that provides icon-overlays and colored text for the version state (implementation is missing yet) - Allow KFileItemListWidget to have custom text colors - Update interface of VersionControlObserver to work with KFileItemModel instead of the old model-interface. --- src/kitemviews/kfileitemlistwidget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kitemviews/kfileitemlistwidget.h') diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index 03ab17b54..0332f1159 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -53,6 +53,9 @@ public: virtual QRectF expansionToggleRect() const; protected: + void setTextColor(const QColor& color); + QColor textColor() const; + virtual void dataChanged(const QHash& current, const QSet& roles = QSet()); virtual void visibleRolesChanged(const QHash& current, const QHash& previous); virtual void visibleRolesSizesChanged(const QHash& current, const QHash& previous); @@ -82,6 +85,8 @@ private: void updateIconsLayoutTextCache(); void updateCompactLayoutTextCache(); void updateDetailsLayoutTextCache(); + + void updateAdditionalInfoTextColor(); QString roleText(TextId textId, const QVariant& roleValue) const; @@ -111,6 +116,7 @@ private: QList m_sortedVisibleRoles; QRectF m_expansionArea; + QColor* m_customTextColor; QColor m_additionalInfoTextColor; }; -- cgit v1.3.1