From 66371ae866c0749e1ab668bd3784ba2c85bdf302 Mon Sep 17 00:00:00 2001 From: dfochi Date: Wed, 13 Jul 2016 23:28:00 +0000 Subject: [PATCH] Minor: Add element prefix to project file git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4575 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetgraphicsitem/element.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()));