]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinfileitemlistwidget.h
KonqOperations: KIO::pasteMimeData -> KIO::paste, update signal and simplify dolphin...
[dolphin.git] / src / views / dolphinfileitemlistwidget.h
index 39c2e454d1b88e93ae7784819961e6a85ed944f0..b9de6fb194e45dab5e440edad41fc922172f45b5 100644 (file)
 #include <libdolphin_export.h>
 
 #include <kitemviews/kfileitemlistwidget.h>
-
+#include <kversioncontrolplugin2.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
 
 public:
-    DolphinFileItemListWidget(QGraphicsItem* parent);
+    DolphinFileItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
     virtual ~DolphinFileItemListWidget();
+
+protected:
+    virtual void refreshCache();
+
+private:
+    static QPixmap overlayForState(KVersionControlPlugin2::ItemVersion version, int size);
+
 };
 
 #endif