#include <QToolButton>
#include <QTreeWidget>
#include <QPainter>
-#include <QStyledItemDelegate>
#include <QUndoStack>
#include <QTimer>
#include <QApplication>
#include <nepomuk2/resource.h>
#endif
-
#include "definitions.h"
#include "timecode.h"
#include "kdenlivesettings.h"
class KdenliveDoc;
class DocClipBase;
class AbstractClipJob;
-
-const int NameRole = Qt::UserRole;
-const int DurationRole = NameRole + 1;
-const int UsageRole = NameRole + 2;
+class ItemDelegate;
class SmallInfoLabel: public QPushButton
{
SmallInfoLabel(QWidget *parent = 0);
static const QString getStyleSheet(const QPalette &p);
private:
+ enum ItemRole {
+ NameRole = Qt::UserRole,
+ DurationRole,
+ UsageRole
+ };
+
QTimeLine* m_timeLine;
public slots:
void slotTimeLineFinished();
};
-
-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;
-};
-
class ProjectList : public QWidget
{
Q_OBJECT