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:
scorpio810
2015-12-30 20:04:17 +00:00
parent f93e2eb3e0
commit 396e2cf0f2
4 changed files with 18 additions and 9 deletions

View File

@@ -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