Fix wrong way to save number value in xml file. (store without local formating)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4748 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-10-17 19:41:44 +00:00
parent c5f5a55875
commit 0ea8b45f70
3 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ void XRefProperties::toXml(QDomElement &xml_element) const {
QString snap = m_snap_to == Bottom? "bottom" : "label";
xml_element.setAttribute("snapto", snap);
int offset = m_offset;
xml_element.setAttribute("offset", offset);
xml_element.setAttribute("offset", QString::number(offset));
QString master_label = m_master_label;
xml_element.setAttribute("master_label", master_label);
QString slave_label = m_slave_label;

View File

@@ -857,8 +857,8 @@ void Conductor::loadSequential(QDomElement* e, QString seq, QStringList* list) {
QDomElement Conductor::toXml(QDomDocument &d, QHash<Terminal *, int> &table_adr_id) const {
QDomElement e = d.createElement("conductor");
e.setAttribute("x", pos().x());
e.setAttribute("y", pos().y());
e.setAttribute("x", QString::number(pos().x()));
e.setAttribute("y", QString::number(pos().y()));
e.setAttribute("terminal1", table_adr_id.value(terminal1));
e.setAttribute("terminal2", table_adr_id.value(terminal2));

View File

@@ -600,8 +600,8 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const
{
QDomElement point = document.createElement("point");
QPointF pf = mapToScene(p);
point.setAttribute("x", pf.x());
point.setAttribute("y", pf.y());
point.setAttribute("x", QString::number(pf.x()));
point.setAttribute("y", QString::number(pf.y()));
points.appendChild(point);
}
result.appendChild(points);