19 Q_PROPERTY(QString elementId READ elementId WRITE setElementId)
23 Type = DA::ItemType_GraphicsStandardNodeSvgItem
25 int type()
const override
35 void setBodySize(
const QSizeF& s)
override;
37 void paintBody(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget,
const QRectF& bodyRect)
override;
41 void setEnableMoveText(
bool on =
true);
42 bool isEnableMoveText()
const;
44 QSvgRenderer* renderer()
const;
45 void setSharedRenderer(QSvgRenderer* renderer);
47 void setElementId(
const QString&
id);
48 QString elementId()
const;
50 void setCachingEnabled(
bool caching);
51 bool isCachingEnabled()
const;
53 QSizeF getTextSize()
const;
54 void setText(
const QString& t);
56 bool setSvg(
const QString& svgfile);
60 void setAspectRatioMode(Qt::AspectRatioMode m);
61 Qt::AspectRatioMode getAspectRatioMode()
const;
63 QGraphicsSimpleTextItem* getTextItem()
const;
65 void updateTextItemPos();
68 virtual void prepareNodeNameChanged(
const QString& name)
override;
74 virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change,
const QVariant& value);