X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsubprojectitem.h;h=5332e1db9f56ff8d8095c702a45a6ce652456038;hb=f41d1de9f855972a98ded4ce11394ca11ad5b32e;hp=d3efd85ad19c5a1c532535b59ee2a16db1333185;hpb=c6137d8358c60b7ad69171053272299dbdc483c1;p=kdenlive diff --git a/src/subprojectitem.h b/src/subprojectitem.h index d3efd85a..5332e1db 100644 --- a/src/subprojectitem.h +++ b/src/subprojectitem.h @@ -38,21 +38,21 @@ class DocClipBase; class SubProjectItem : public QTreeWidgetItem { public: - SubProjectItem(double display_ratio, 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(QPoint p); + void setZone(const QPoint &p); QString description() const; - void setDescription(QString desc); + 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; }