X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=e644be1bc7f1724174427faf92ac76cdc69f2f39;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=b43aa26c25cea94a5a6034c68a86fcf9538c17af;hpb=b01ea4492797423d21852d87ee942bb4b15783b6;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index b43aa26c..e644be1b 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -24,10 +24,31 @@ #include #include #include +#include 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