]> git.sesse.net Git - kdenlive/blobdiff - src/projectitem.h
fix crash when starting under macOSX
[kdenlive] / src / projectitem.h
index c39fa7376a616499c74c54238e4a2ea0f16c0101..fc396115575efbd86868da560ade8645751ee019 100644 (file)
 #include "definitions.h"
 
 class DocClipBase;
+
+/** \brief Represents a clip or a folder in the projecttree
+ *
+ * This class represents a clip or folder in the projecttree and in the document(?) */
 class ProjectItem : public QTreeWidgetItem {
 public:
     /** Create folder item */
@@ -42,11 +46,13 @@ public:
     int numReferences() const;
 
     void setProperties(const QMap < QString, QString > &attributes, const QMap < QString, QString > &metadata);
+
+    /** \brief The id of the clip or folder.
+     *
+     * The clipId is used both to identify clips and folders (groups) */
     const QString &clipId() const;
     QStringList names() const;
     bool isGroup() const;
-    const QString groupName() const;
-    void setGroupName(const QString name);
     const KUrl clipUrl() const;
     int clipMaxDuration() const;
     CLIPTYPE clipType() const;
@@ -54,9 +60,13 @@ public:
     DocClipBase *referencedClip();
     void setProperties(QMap <QString, QString> props);
     void setProperty(const QString &key, const QString &value);
+    void clearProperty(const QString &key);
+    const QString groupName() const;
+    void setGroupName(const QString name);
+    QString getClipHash() const;
 
 private:
-    QString m_groupName;
+    QString m_groupname;
     CLIPTYPE m_clipType;
     QString m_clipId;
     void slotSetToolTip();