[qet] [3482] Minor change |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3482
Author: scorpio810
Date: 2014-11-13 12:21:06 +0100 (Thu, 13 Nov 2014)
Log Message:
-----------
Minor change
Modified Paths:
--------------
trunk/sources/qetgraphicsitem/diagramimageitem.cpp
trunk/sources/qetgraphicsitem/qetshapeitem.cpp
Modified: trunk/sources/qetgraphicsitem/diagramimageitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/diagramimageitem.cpp 2014-11-13 11:04:34 UTC (rev 3481)
+++ trunk/sources/qetgraphicsitem/diagramimageitem.cpp 2014-11-13 11:21:06 UTC (rev 3482)
@@ -198,7 +198,7 @@
if (e.tagName() != "image") return (false);
QDomNode image_node = e.firstChild();
if (!image_node.isText()) return (false);
- is_movable_ = e.attribute("is_movable", "true").toInt ();
+ is_movable_ = (e.attribute("is_movable").toInt());
//load xml image to QByteArray
QByteArray array;
Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp 2014-11-13 11:04:34 UTC (rev 3481)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp 2014-11-13 11:21:06 UTC (rev 3482)
@@ -204,7 +204,7 @@
bool QetShapeItem::fromXml(const QDomElement &e) {
if (e.tagName() != "shape") return (false);
- is_movable_ = e.attribute("is_movable", "true").toInt ();
+ is_movable_ = (e.attribute("is_movable").toInt());
m_shapeStyle = Qt::PenStyle(e.attribute("style","0").toInt());
if (e.attribute("type", "0").toInt() != Polyline) {