]> git.sesse.net Git - kdenlive/blobdiff - src/subprojectitem.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / subprojectitem.h
index 4dcb216de38154fb7b6933f210a7f8c4c081fcd3..5332e1db9f56ff8d8095c702a45a6ce652456038 100644 (file)
@@ -38,17 +38,21 @@ class DocClipBase;
 class SubProjectItem : public QTreeWidgetItem
 {
 public:
-    SubProjectItem(QTreeWidgetItem * parent, int in, int out, QString description = QString());
+    SubProjectItem(double display_ratio, QTreeWidgetItem * parent, int in, int out, const QString& description = QString());
     virtual ~SubProjectItem();
     QDomElement toXml() const;
     int numReferences() const;
     DocClipBase *referencedClip();
     QPoint zone() const;
+    void setZone(const QPoint &p);
+    QString description() const;
+    void setDescription(const QString& desc);
+    static int itemDefaultHeight();
 
     /** Make sure folders appear on top of the tree widget */
     virtual bool operator<(const QTreeWidgetItem &other)const {
         int column = treeWidget()->sortColumn();
-        if (other.type() != PROJECTFOLDERTYPE)
+        if (other.type() != ProjectFoldeType)
             return text(column).toLower() < other.text(column).toLower();
         else return false;
     }
@@ -56,6 +60,7 @@ public:
 private:
     int m_in;
     int m_out;
+    QString m_description;
 };
 
 #endif