X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsubprojectitem.cpp;h=7b1f7450db93ac536663b68537d65bcebba08d6e;hb=b6d6c25f1bd07f11a0ceaf32a3a5bcaeab367336;hp=eba677b17c9ee9d974d101806fd6b219fba0a4f6;hpb=71e41ad0c197e2e2eb033dff7800427f64d3428f;p=kdenlive diff --git a/src/subprojectitem.cpp b/src/subprojectitem.cpp index eba677b1..7b1f7450 100644 --- a/src/subprojectitem.cpp +++ b/src/subprojectitem.cpp @@ -32,7 +32,7 @@ const int DurationRole = Qt::UserRole + 1; const int itemHeight = 30; -SubProjectItem::SubProjectItem(double display_ratio, QTreeWidgetItem * parent, int in, int out, QString description) : +SubProjectItem::SubProjectItem(double display_ratio, QTreeWidgetItem * parent, int in, int out, const QString &description) : QTreeWidgetItem(parent, PROJECTSUBCLIPTYPE), m_in(in), m_out(out), m_description(description) { setSizeHint(0, QSize((int) (itemHeight * display_ratio) + 2, itemHeight + 2)); @@ -77,7 +77,7 @@ QPoint SubProjectItem::zone() const return z; } -void SubProjectItem::setZone(QPoint p) +void SubProjectItem::setZone(const QPoint& p) { m_in = p.x(); m_out = p.y(); @@ -97,7 +97,7 @@ QString SubProjectItem::description() const return m_description; } -void SubProjectItem::setDescription(QString desc) +void SubProjectItem::setDescription(const QString &desc) { m_description = desc; setText(1, m_description);