]> 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 67a7823f7e910759a45eb5e8725547b0db35b29d..e644be1bc7f1724174427faf92ac76cdc69f2f39 100644 (file)
@@ -32,20 +32,21 @@ class DocClipBase;
 class ItemDelegate: public QStyledItemDelegate
 {
 public:
-    ItemDelegate(QAbstractItemView* parent = 0): QStyledItemDelegate(parent) {
+    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;
-
-private:
-    enum ItemRole {
-        NameRole = Qt::UserRole,
-        DurationRole,
-        UsageRole
-    };
 };
 
 class ProjectListView : public QTreeWidget