X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsubprojectitem.h;h=5332e1db9f56ff8d8095c702a45a6ce652456038;hb=4f332f85fe29846d15d5006d66fe03ebe09b556c;hp=5b1d79128d177d1fa414067d9d778b3b262475a9;hpb=f0867739c9a788a250a37174e0952e0e96e318b3;p=kdenlive diff --git a/src/subprojectitem.h b/src/subprojectitem.h index 5b1d7912..5332e1db 100644 --- a/src/subprojectitem.h +++ b/src/subprojectitem.h @@ -38,7 +38,7 @@ 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; @@ -46,13 +46,13 @@ public: QPoint zone() const; 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; }