[qet] [4302] Minor :replace XML attribute name "shape_size" by "size" in Basic shapes

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4302
Author:   scorpio810
Date:     2016-01-03 05:53:09 +0100 (Sun, 03 Jan 2016)
Log Message:
-----------
Minor :replace XML attribute name "shape_size" by "size"in Basic shapes
Properties

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/qetshapeitem.cpp

Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2016-01-02 12:58:17 UTC (rev 4301)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2016-01-03 04:53:09 UTC (rev 4302)
@@ -459,7 +459,7 @@
 
 	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 @@
 	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)
 	{


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/