]> git.sesse.net Git - kdenlive/blobdiff - src/subprojectitem.h
Const'ref
[kdenlive] / src / subprojectitem.h
index e38846f58ef02a19e0fcb1ce91cf8d46c3685729..6831682a9b2b5566159b3dcab48693cd6f71dd98 100644 (file)
@@ -38,24 +38,29 @@ class DocClipBase;
 class SubProjectItem : public QTreeWidgetItem
 {
 public:
-    SubProjectItem(QTreeWidgetItem * parent, int in, int out);
+    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)
-         return text(column).toLower() < other.text(column).toLower();
-       else return false;
+        int column = treeWidget()->sortColumn();
+        if (other.type() != PROJECTFOLDERTYPE)
+            return text(column).toLower() < other.text(column).toLower();
+        else return false;
     }
 
 private:
     int m_in;
     int m_out;
+    QString m_description;
 };
 
 #endif