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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Element::elementData
|
||||
* @return the element data used by this element
|
||||
*/
|
||||
ElementData Element::elementData() const
|
||||
{
|
||||
return m_data;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief comparPos
|
||||
Compare position of the two elements. Compare 3 points:
|
||||
|
||||
@@ -103,6 +103,15 @@ class Element : public QetGraphicsItem
|
||||
DiagramContext elementInformations()const
|
||||
{return m_data.m_informations;}
|
||||
virtual void setElementInformations(DiagramContext dc);
|
||||
|
||||
ElementData elementData() const;
|
||||
|
||||
/**
|
||||
* @brief kindInformations
|
||||
* @deprecated
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
DiagramContext kindInformations() const
|
||||
{return m_kind_informations;}
|
||||
//@kind_information_ is used to store more information
|
||||
@@ -165,8 +174,20 @@ class Element : public QetGraphicsItem
|
||||
virtual void unlinkElement(Element *) {}
|
||||
virtual void initLink(QETProject *);
|
||||
QList<Element *> linkedElements ();
|
||||
|
||||
/**
|
||||
* @brief linkType
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
virtual kind linkType() const {return m_link_type;} // return the linkable type
|
||||
/**
|
||||
* @brief linkTypeToString
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
QString linkTypeToString() const;
|
||||
|
||||
void newUuid() {m_uuid = QUuid::createUuid();} //create new uuid for this element
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user