mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-19 11:09:59 +02:00
Improve Basic shapes Properties size function replace QSpinBox by QDoublespinBox, int to double
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4296 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)).toInt());
|
||||
m_pen.setWidthF(e.attribute("shape_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
|
||||
|
||||
Reference in New Issue
Block a user