diff options
| author | Peter Penz <[email protected]> | 2011-09-08 20:28:41 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-08 20:29:27 +0200 |
| commit | f0debd937766045c77dea5f2f5255de89f7b2697 (patch) | |
| tree | fb022c37b49130b999a3b6a1f68fbf7ab1454b4c /src/views/dolphinfileitemlistwidget.h | |
| parent | be629fe8501941138da849cf1179ad67cd5570cb (diff) | |
Version control: show pixmap overlays for the version state
Diffstat (limited to 'src/views/dolphinfileitemlistwidget.h')
| -rw-r--r-- | src/views/dolphinfileitemlistwidget.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/views/dolphinfileitemlistwidget.h b/src/views/dolphinfileitemlistwidget.h index d94a9810e..b08b96428 100644 --- a/src/views/dolphinfileitemlistwidget.h +++ b/src/views/dolphinfileitemlistwidget.h @@ -23,7 +23,14 @@ #include <libdolphin_export.h> #include <kitemviews/kfileitemlistwidget.h> +#include <kversioncontrolplugin.h> +/** + * @brief Extends KFileItemListWidget to handle the "version" role. + * + * The "version" role is set if version-control-plugins have been enabled. + * @see KVersionControlPlugin + */ class LIBDOLPHINPRIVATE_EXPORT DolphinFileItemListWidget : public KFileItemListWidget { Q_OBJECT @@ -33,8 +40,11 @@ public: virtual ~DolphinFileItemListWidget(); protected: - /** @reimp */ virtual void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>()); + virtual void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous); + +private: + static QPixmap overlayForState(KVersionControlPlugin::VersionState state, int size); }; |
