]> git.sesse.net Git - kdenlive/blobdiff - src/projectitem.h
Geometry Widget:
[kdenlive] / src / projectitem.h
index 9817cd1fcfa2ffc994a26d7b3069764b62ac9281..0ed280211ba20de6764e89678d373fef38337346 100644 (file)
@@ -60,11 +60,19 @@ public:
     void setProperty(const QString &key, const QString &value);
     void clearProperty(const QString &key);
     QString getClipHash() const;
+    static int itemDefaultHeight();
+    void slotSetToolTip();
+
+    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;
+    }
 
 private:
     CLIPTYPE m_clipType;
     QString m_clipId;
-    void slotSetToolTip();
     DocClipBase *m_clip;
 };