X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=67a7823f7e910759a45eb5e8725547b0db35b29d;hb=f2fe0d6c467877c59f3fa4eb7f20cf79d1814b66;hp=b43aa26c25cea94a5a6034c68a86fcf9538c17af;hpb=8be6c85ffd189c228938a982d0d6a5f97650481a;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index b43aa26c..67a7823f 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -24,10 +24,30 @@ #include #include #include +#include class DocClipBase; +class ItemDelegate: public QStyledItemDelegate +{ +public: + 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 { Q_OBJECT