Move load of kind information from element to custom element, because the kind information

belong to the element definition, so custom element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2896 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-03-02 11:15:59 +00:00
parent 390132933b
commit 578cda387b
2 changed files with 3 additions and 10 deletions

View File

@@ -398,8 +398,6 @@ bool Element::fromXml(QDomElement &e, QHash<int, Terminal *> &table_id_adr, bool
//load informations
element_informations_.fromXml(e.firstChildElement("elementInformations"), "elementInformation");
//load kind informations
kind_informations_.fromXml(e.firstChildElement("kindInformations"), "kindInformation");
// position, selection
setPos(e.attribute("x").toDouble(), e.attribute("y").toDouble());
@@ -487,14 +485,6 @@ QDomElement Element::toXml(QDomDocument &document, QHash<Terminal *, int> &table
element.appendChild(infos);
}
//save kind_informations of this element
if (! kind_informations_.keys().isEmpty()) {
QDomElement kind_infos = document.createElement("kindInformations");
kind_informations_.toXml(kind_infos, "kindInformation");
element.appendChild(kind_infos);
}
return(element);
}