]> git.sesse.net Git - kdenlive/blobdiff - src/projectlistview.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / projectlistview.h
index b43aa26c25cea94a5a6034c68a86fcf9538c17af..e644be1bc7f1724174427faf92ac76cdc69f2f39 100644 (file)
 #include <QTreeWidget>
 #include <QContextMenuEvent>
 #include <QPainter>
+#include <QStyledItemDelegate>
 
 class DocClipBase;
 
 
+class ItemDelegate: public QStyledItemDelegate
+{
+public:
+    enum ItemRole {
+        NameRole = Qt::UserRole,
+        DurationRole,
+        UsageRole
+    };
+
+    ItemDelegate(QAbstractItemView* parent = 0)
+        : QStyledItemDelegate(parent)
+    {
+    }
+
+    /*void drawFocus(QPainter *, const QStyleOptionViewItem &, const QRect &) const {
+    }*/
+
+    void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
+};
+
 class ProjectListView : public QTreeWidget
 {
     Q_OBJECT