diff --git a/sources/qetgraphicsitem/element.cpp b/sources/qetgraphicsitem/element.cpp index 7f24074d8..fed0ef632 100644 --- a/sources/qetgraphicsitem/element.cpp +++ b/sources/qetgraphicsitem/element.cpp @@ -403,6 +403,9 @@ bool Element::fromXml(QDomElement &e, QHash &table_id_adr, bool //uuid of this element uuid_= QUuid(e.attribute("uuid", QUuid::createUuid().toString())); + //load prefix + m_prefix = e.attribute("prefix"); + //load informations m_element_informations.fromXml(e.firstChildElement("elementInformations"), "elementInformation"); @@ -438,6 +441,8 @@ QDomElement Element::toXml(QDomDocument &document, QHash &table element.setAttribute("type", typeId()); // uuid element.setAttribute("uuid", uuid().toString()); + // prefix + element.setAttribute("prefix", m_prefix); // position, selection et orientation element.setAttribute("x", QString("%1").arg(pos().x()));