mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-31 16:50:52 +01:00
Wrap code for better readability
This commit is contained in:
@@ -22,10 +22,11 @@
|
||||
@brief SimpleElement::SimpleElement
|
||||
@param location
|
||||
@param qgi
|
||||
@param s
|
||||
@param state
|
||||
*/
|
||||
SimpleElement::SimpleElement(const ElementsLocation &location, QGraphicsItem *qgi, int *state) :
|
||||
SimpleElement::SimpleElement(const ElementsLocation &location,
|
||||
QGraphicsItem *qgi,
|
||||
int *state) :
|
||||
Element(location, qgi, state, Element::Simple)
|
||||
{}
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@ class SimpleElement : public Element {
|
||||
Q_OBJECT
|
||||
|
||||
public :
|
||||
explicit SimpleElement(const ElementsLocation &, QGraphicsItem * = nullptr, int * = nullptr);
|
||||
explicit SimpleElement(const ElementsLocation &,
|
||||
QGraphicsItem * = nullptr,
|
||||
int * = nullptr);
|
||||
~SimpleElement() override;
|
||||
|
||||
void initLink(QETProject *project) override;
|
||||
|
||||
@@ -26,10 +26,11 @@
|
||||
Default constructor
|
||||
@param location location of xml definition
|
||||
@param qgi parent QGraphicItem
|
||||
@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) :
|
||||
SlaveElement::SlaveElement(const ElementsLocation &location,
|
||||
QGraphicsItem *qgi,
|
||||
int *state) :
|
||||
Element(location, qgi, state, Element::Slave)
|
||||
{
|
||||
m_xref_item = nullptr;
|
||||
|
||||
@@ -25,7 +25,9 @@ class SlaveElement : public Element
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SlaveElement (const ElementsLocation &, QGraphicsItem * = nullptr, int * = nullptr);
|
||||
explicit SlaveElement (const ElementsLocation &,
|
||||
QGraphicsItem * = nullptr,
|
||||
int * = nullptr);
|
||||
~SlaveElement() override;
|
||||
void linkToElement(Element *elmt) override;
|
||||
void unlinkAllElements() override;
|
||||
|
||||
Reference in New Issue
Block a user