X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlist.h;h=4cb49734c2aa655f78c3ac8542e6d7a010933407;hb=d9b09bd1f1fbd5c1dbbbce217ae89ceb57f090c5;hp=d24a1d02df41b759b846ce78e3de12c350854c68;hpb=f2fe0d6c467877c59f3fa4eb7f20cf79d1814b66;p=kdenlive diff --git a/src/projectlist.h b/src/projectlist.h index d24a1d02..4cb49734 100644 --- a/src/projectlist.h +++ b/src/projectlist.h @@ -51,7 +51,6 @@ #include #endif - #include "definitions.h" #include "timecode.h" #include "kdenlivesettings.h" @@ -102,10 +101,6 @@ class DocClipBase; class AbstractClipJob; class ItemDelegate; -const int NameRole = Qt::UserRole; -const int DurationRole = NameRole + 1; -const int UsageRole = NameRole + 2; - class SmallInfoLabel: public QPushButton { Q_OBJECT @@ -113,6 +108,12 @@ public: SmallInfoLabel(QWidget *parent = 0); static const QString getStyleSheet(const QPalette &p); private: + enum ItemRole { + NameRole = Qt::UserRole, + DurationRole, + UsageRole + }; + QTimeLine* m_timeLine; public slots: @@ -306,7 +307,7 @@ private: * @param status The job status (see definitions.h) * @param progress The job progress (in percents) * @param statusMessage The job info message */ - void setJobStatus(ProjectItem *item, JOBTYPE jobType, CLIPJOBSTATUS status, int progress = 0, const QString &statusMessage = QString()); + void setJobStatus(ProjectItem *item, JOBTYPE jobType, ClipJobStatus status, int progress = 0, const QString &statusMessage = QString()); void monitorItemEditing(bool enable); /** @brief Get cached thumbnail for a project's clip or create it if no cache. */ void getCachedThumbnail(ProjectItem *item);