┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinfileitemlistwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/dolphinfileitemlistwidget.h')
-rw-r--r--src/views/dolphinfileitemlistwidget.h12
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);
};