From 5c2ddfafa5ab1f6dcb4da0f3ab56d5983924ba57 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sun, 3 Jan 2016 04:53:09 +0000 Subject: [PATCH] Minor :replace XML attribute name "shape_size" by "size"in Basic shapes Properties git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4302 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetgraphicsitem/qetshapeitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/qetgraphicsitem/qetshapeitem.cpp b/sources/qetgraphicsitem/qetshapeitem.cpp index 6769e3712..1a1c148cc 100644 --- a/sources/qetgraphicsitem/qetshapeitem.cpp +++ b/sources/qetgraphicsitem/qetshapeitem.cpp @@ -459,7 +459,7 @@ bool QetShapeItem::fromXml(const QDomElement &e) is_movable_ = (e.attribute("is_movable").toInt()); m_pen.setStyle(Qt::PenStyle(e.attribute("style","0").toInt())); - m_pen.setWidthF(e.attribute("shape_size", QString::number(shape_size)).toDouble()); + m_pen.setWidthF(e.attribute("size", QString::number(shape_size)).toDouble()); QString type = e.attribute("type"); //Compatibility for version older than N°4075, shape type was stored with an int @@ -508,7 +508,7 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const QMetaEnum me = metaObject()->enumerator(metaObject()->indexOfEnumerator("ShapeType")); result.setAttribute("type", me.valueToKey(m_shapeType)); result.setAttribute("style", QString::number(m_pen.style())); - result.setAttribute("shape_size", QString::number(m_pen.widthF())); + result.setAttribute("size", QString::number(m_pen.widthF())); result.setAttribute("is_movable", bool(is_movable_)); if (m_shapeType != Polygon) {