mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-13 20:59:59 +01:00
Minor change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3482 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -198,7 +198,7 @@ bool DiagramImageItem::fromXml(const QDomElement &e) {
|
|||||||
if (e.tagName() != "image") return (false);
|
if (e.tagName() != "image") return (false);
|
||||||
QDomNode image_node = e.firstChild();
|
QDomNode image_node = e.firstChild();
|
||||||
if (!image_node.isText()) return (false);
|
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
|
//load xml image to QByteArray
|
||||||
QByteArray array;
|
QByteArray array;
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
|||||||
bool QetShapeItem::fromXml(const QDomElement &e) {
|
bool QetShapeItem::fromXml(const QDomElement &e) {
|
||||||
if (e.tagName() != "shape") return (false);
|
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());
|
m_shapeStyle = Qt::PenStyle(e.attribute("style","0").toInt());
|
||||||
|
|
||||||
if (e.attribute("type", "0").toInt() != Polyline) {
|
if (e.attribute("type", "0").toInt() != Polyline) {
|
||||||
|
|||||||
Reference in New Issue
Block a user