mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
move all static xml functions to qetxml
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "../../qetgraphicsitem/terminal.h"
|
||||
|
||||
#include "../../qetxml.h"
|
||||
|
||||
/**
|
||||
@brief PartTerminal::PartTerminal
|
||||
@param editor :
|
||||
@@ -52,7 +54,7 @@ bool PartTerminal::fromXmlPriv(const QDomElement &xml_elmt) {
|
||||
// update part and add uuid, which is used in the new version to connect terminals together
|
||||
// if the attribute not exists, means, the element is created with an older version of qet. So use the legacy approach
|
||||
// to identify terminals
|
||||
propertyUuid(xml_elmt, "uuid", &d->m_uuid);
|
||||
QETXML::propertyUuid(xml_elmt, "uuid", &d->m_uuid);
|
||||
|
||||
if (!d->fromXml(xml_elmt))
|
||||
return false;
|
||||
@@ -70,7 +72,7 @@ bool PartTerminal::fromXmlPriv(const QDomElement &xml_elmt) {
|
||||
*/
|
||||
void PartTerminal::toXmlPriv(QDomElement& e) const {
|
||||
|
||||
e.appendChild(createXmlProperty("uuid", d->m_uuid));
|
||||
e.appendChild(QETXML::createXmlProperty("uuid", d->m_uuid));
|
||||
|
||||
d->m_pos = pos();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user