14 QSize calcSize()
const;
16 virtual void paintBody(QPainter* painter,
17 const QStyleOptionGraphicsItem* option,
19 const QRectF& bodyRect)
override;
21 QSize getLinkpointSize()
const;
23 virtual void nodeDisplayNameChanged(
const QString& name);
25 void setEnableMultLink(
bool on);
26 bool isEnableMultLink()
const;
28 void setEnableShowIcon(
bool on);
29 bool isEnableShowIcon()
const;
31 void setIconSize(
const QSize& s);
32 QSize getIconSize()
const;
36 void paintDisplayName(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget,
const QString& name);
37 void paintIcon(QPainter* painter,
38 const QStyleOptionGraphicsItem* option,
40 const QRectF& bodyRect,
41 const QPixmap& pixmap);
43 QPixmap generateIcon();
47 bool mEnableShowIcon {
true };
48 QSize mIconSize { 20, 20 };