mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user