mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-01 17:19:59 +01:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user