diff options
| author | Peter Penz <[email protected]> | 2011-09-06 23:42:42 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-06 23:45:41 +0200 |
| commit | b8c718a6fd9810f9e91303ed50402de4ab417a49 (patch) | |
| tree | f6e22b028cb0932c44dc29ea6c494f121c6f8dc9 /src/kitemviews/kfileitemlistwidget.h | |
| parent | 7a91492cff931c0c4e0d38dd0aee77d9dcb29373 (diff) | |
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.
Diffstat (limited to 'src/kitemviews/kfileitemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kfileitemlistwidget.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>()); virtual void visibleRolesChanged(const QHash<QByteArray, int>& current, const QHash<QByteArray, int>& previous); virtual void visibleRolesSizesChanged(const QHash<QByteArray, QSizeF>& current, const QHash<QByteArray, QSizeF>& 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<QByteArray> m_sortedVisibleRoles; QRectF m_expansionArea; + QColor* m_customTextColor; QColor m_additionalInfoTextColor; }; |
