X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractgroupitem.h;h=91792be7aca28620c99a48812d3454530a0cc4ef;hb=5d4746e4c3e8665de83e6d281dcd08a46cd22c31;hp=0f16f32e193f12ce6bbee1b1563581353b580930;hpb=0d59a0487e34d72a58cde6f58b7499d8f6ef404b;p=kdenlive diff --git a/src/abstractgroupitem.h b/src/abstractgroupitem.h index 0f16f32e..91792be7 100644 --- a/src/abstractgroupitem.h +++ b/src/abstractgroupitem.h @@ -40,9 +40,9 @@ public: void addItem(QGraphicsItem * item); void removeItem(QGraphicsItem * item); int track() const; - QPainterPath clipGroupShape(QPointF offset) const; - QPainterPath clipGroupSpacerShape(QPointF offset) const; - QPainterPath transitionGroupShape(QPointF offset) const; + QPainterPath clipGroupShape(const QPointF &offset) const; + QPainterPath clipGroupSpacerShape(const QPointF &offset) const; + QPainterPath transitionGroupShape(const QPointF &offset) const; void setItemLocked(bool locked); bool isItemLocked() const; // ItemInfo info() const; @@ -71,8 +71,8 @@ protected: private: void fixItemRect(); - QPainterPath groupShape(GRAPHICSRECTITEM type, QPointF offset) const; - QPainterPath spacerGroupShape(GRAPHICSRECTITEM type, QPointF offset) const; + QPainterPath groupShape(GRAPHICSRECTITEM type, const QPointF &offset) const; + QPainterPath spacerGroupShape(GRAPHICSRECTITEM type, const QPointF &offset) const; /** Stores the original info of the items beeing resized. */ QList m_resizeInfos; };