X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractgroupitem.h;h=3e0594ec824ebd7ec03acb0fd7833b5611d41f25;hb=20f0cd1075b25fe1311ba3d0b4fba7f83f9c0f42;hp=2c8c90f7a715bd9be193cc9f6ba661bf67d597ab;hpb=9a05afbe613cde5f8d8ed72c14fecf5d76f464b8;p=kdenlive diff --git a/src/abstractgroupitem.h b/src/abstractgroupitem.h index 2c8c90f7..3e0594ec 100644 --- a/src/abstractgroupitem.h +++ b/src/abstractgroupitem.h @@ -38,9 +38,11 @@ public: virtual int type() const; CustomTrackScene* projectScene(); void addItem(QGraphicsItem * item); + void removeItem(QGraphicsItem * item); int track() const; - QPainterPath clipGroupShape(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; @@ -69,7 +71,8 @@ protected: private: void fixItemRect(); - QPainterPath groupShape(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; };