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/views/dolphinfileitemlistwidget.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/views/dolphinfileitemlistwidget.h') 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 #include - +#include + +/** + * @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& current, const QSet& roles = QSet()); + virtual void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous); + +private: + static QPixmap overlayForState(KVersionControlPlugin::VersionState state, int size); }; -- cgit v1.3.1