X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=e644be1bc7f1724174427faf92ac76cdc69f2f39;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=67a7823f7e910759a45eb5e8725547b0db35b29d;hpb=f2fe0d6c467877c59f3fa4eb7f20cf79d1814b66;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index 67a7823f..e644be1b 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -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