mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Mark deprecated method
This commit is contained in:
@@ -1322,6 +1322,15 @@ void Element::setElementInformations(DiagramContext dc)
|
|||||||
emit elementInfoChange(old_info, m_data.m_informations);
|
emit elementInfoChange(old_info, m_data.m_informations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Element::elementData
|
||||||
|
* @return the element data used by this element
|
||||||
|
*/
|
||||||
|
ElementData Element::elementData() const
|
||||||
|
{
|
||||||
|
return m_data;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief comparPos
|
@brief comparPos
|
||||||
Compare position of the two elements. Compare 3 points:
|
Compare position of the two elements. Compare 3 points:
|
||||||
|
|||||||
@@ -103,6 +103,15 @@ class Element : public QetGraphicsItem
|
|||||||
DiagramContext elementInformations()const
|
DiagramContext elementInformations()const
|
||||||
{return m_data.m_informations;}
|
{return m_data.m_informations;}
|
||||||
virtual void setElementInformations(DiagramContext dc);
|
virtual void setElementInformations(DiagramContext dc);
|
||||||
|
|
||||||
|
ElementData elementData() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief kindInformations
|
||||||
|
* @deprecated
|
||||||
|
* use elementData function instead
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
DiagramContext kindInformations() const
|
DiagramContext kindInformations() const
|
||||||
{return m_kind_informations;}
|
{return m_kind_informations;}
|
||||||
//@kind_information_ is used to store more information
|
//@kind_information_ is used to store more information
|
||||||
@@ -165,8 +174,20 @@ class Element : public QetGraphicsItem
|
|||||||
virtual void unlinkElement(Element *) {}
|
virtual void unlinkElement(Element *) {}
|
||||||
virtual void initLink(QETProject *);
|
virtual void initLink(QETProject *);
|
||||||
QList<Element *> linkedElements ();
|
QList<Element *> linkedElements ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief linkType
|
||||||
|
* use elementData function instead
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
virtual kind linkType() const {return m_link_type;} // return the linkable type
|
virtual kind linkType() const {return m_link_type;} // return the linkable type
|
||||||
|
/**
|
||||||
|
* @brief linkTypeToString
|
||||||
|
* use elementData function instead
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
QString linkTypeToString() const;
|
QString linkTypeToString() const;
|
||||||
|
|
||||||
void newUuid() {m_uuid = QUuid::createUuid();} //create new uuid for this element
|
void newUuid() {m_uuid = QUuid::createUuid();} //create new uuid for this element
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user