conductorproperties: default conductor rotation text are save/load to xml

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2225 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-06-09 12:03:41 +00:00
parent 4e0750a60d
commit 5944968107

View File

@@ -248,6 +248,8 @@ void ConductorProperties::toXml(QDomElement &e) const {
singleLineProperties.toXml(e);
} else if (type == Multi) {
e.setAttribute("num", text);
e.setAttribute("vertirotatetext", verti_rotate_text);
e.setAttribute("horizrotatetext", horiz_rotate_text);
}
QString conductor_style = writeStyle();
@@ -282,6 +284,8 @@ void ConductorProperties::fromXml(QDomElement &e) {
} else {
// recupere le champ de texte
text = e.attribute("num");
verti_rotate_text = e.attribute("vertirotatetext").toDouble();
horiz_rotate_text = e.attribute("horizrotatetext").toDouble();
type = Multi;
}
}