mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
use more meaningful name
This commit is contained in:
@@ -55,7 +55,7 @@ class Element : public QetGraphicsItem // TODO: derive from propertiesInterface!
|
|||||||
Slave = 16,
|
Slave = 16,
|
||||||
Terminale = 32};
|
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;
|
~Element() override;
|
||||||
private:
|
private:
|
||||||
Element(const Element &);
|
Element(const Element &);
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
* @param s parent diagram
|
* @param s parent diagram
|
||||||
* @param state int used to know if the creation of element have error
|
* @param state int used to know if the creation of element have error
|
||||||
*/
|
*/
|
||||||
SlaveElement::SlaveElement(const ElementsLocation &location, QGraphicsItem *qgi, int *state) :
|
SlaveElement::SlaveElement(const ElementsLocation &location, QGraphicsItem *parent, int *state) :
|
||||||
Element(location, qgi, state, Element::Slave)
|
Element(location, parent, state, Element::Slave)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class SlaveElement : public Element
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit SlaveElement (const ElementsLocation &, QGraphicsItem * = nullptr, int * = nullptr);
|
explicit SlaveElement (const ElementsLocation &, QGraphicsItem * parent= nullptr, int * = nullptr);
|
||||||
~SlaveElement() override;
|
~SlaveElement() override;
|
||||||
void linkToElement(Element *elmt) override;
|
void linkToElement(Element *elmt) override;
|
||||||
void unlinkAllElements() override;
|
void unlinkAllElements() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user