diff --git a/sources/qetgraphicsitem/element.h b/sources/qetgraphicsitem/element.h index a5f2c9689..441bbc3d6 100644 --- a/sources/qetgraphicsitem/element.h +++ b/sources/qetgraphicsitem/element.h @@ -55,7 +55,7 @@ class Element : public QetGraphicsItem // TODO: derive from propertiesInterface! Slave = 16, Terminale = 32}; - Element(const ElementsLocation &location, QGraphicsItem * = nullptr, int *state = nullptr, Element::kind link_type = Element::Simple); + Element(const ElementsLocation &location, QGraphicsItem * parent= nullptr, int *state = nullptr, Element::kind link_type = Element::Simple); ~Element() override; private: Element(const Element &); diff --git a/sources/qetgraphicsitem/slaveelement.cpp b/sources/qetgraphicsitem/slaveelement.cpp index 3c61830d3..d69b778bd 100644 --- a/sources/qetgraphicsitem/slaveelement.cpp +++ b/sources/qetgraphicsitem/slaveelement.cpp @@ -29,8 +29,8 @@ * @param s parent diagram * @param state int used to know if the creation of element have error */ -SlaveElement::SlaveElement(const ElementsLocation &location, QGraphicsItem *qgi, int *state) : - Element(location, qgi, state, Element::Slave) +SlaveElement::SlaveElement(const ElementsLocation &location, QGraphicsItem *parent, int *state) : + Element(location, parent, state, Element::Slave) { } diff --git a/sources/qetgraphicsitem/slaveelement.h b/sources/qetgraphicsitem/slaveelement.h index fe5067da9..3117451da 100644 --- a/sources/qetgraphicsitem/slaveelement.h +++ b/sources/qetgraphicsitem/slaveelement.h @@ -25,7 +25,7 @@ class SlaveElement : public Element { Q_OBJECT public: - explicit SlaveElement (const ElementsLocation &, QGraphicsItem * = nullptr, int * = nullptr); + explicit SlaveElement (const ElementsLocation &, QGraphicsItem * parent= nullptr, int * = nullptr); ~SlaveElement() override; void linkToElement(Element *elmt) override; void unlinkAllElements() override;