mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
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:
@@ -248,6 +248,8 @@ void ConductorProperties::toXml(QDomElement &e) const {
|
|||||||
singleLineProperties.toXml(e);
|
singleLineProperties.toXml(e);
|
||||||
} else if (type == Multi) {
|
} else if (type == Multi) {
|
||||||
e.setAttribute("num", text);
|
e.setAttribute("num", text);
|
||||||
|
e.setAttribute("vertirotatetext", verti_rotate_text);
|
||||||
|
e.setAttribute("horizrotatetext", horiz_rotate_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString conductor_style = writeStyle();
|
QString conductor_style = writeStyle();
|
||||||
@@ -282,6 +284,8 @@ void ConductorProperties::fromXml(QDomElement &e) {
|
|||||||
} else {
|
} else {
|
||||||
// recupere le champ de texte
|
// recupere le champ de texte
|
||||||
text = e.attribute("num");
|
text = e.attribute("num");
|
||||||
|
verti_rotate_text = e.attribute("vertirotatetext").toDouble();
|
||||||
|
horiz_rotate_text = e.attribute("horizrotatetext").toDouble();
|
||||||
type = Multi;
|
type = Multi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user