34 connect(scene, SIGNAL(graphicsSceneClicked(
const QPointF&)),
this, SLOT(
updateNodeActivation(
const QPointF&)));
40 prepareGeometryChange();
41 this->boundingBox = boundingBox;
55 this->penColor = penColor;
62 this->pixmap = pixmap;
79 QBrush penBrush(penColor);
80 QPen pen(penBrush, 3, Qt::SolidLine, Qt::FlatCap, Qt::RoundJoin);
82 QBrush brush(Qt::lightGray);
87 painter->setBrush(brush);
91 painter->setBrush(Qt::NoBrush);
94 painter->drawEllipse(boundingBox);
98 if (text.length() > 0)
100 QPen pen(Qt::black, 1, Qt::SolidLine, Qt::FlatCap, Qt::RoundJoin);
101 painter->setPen(pen);
102 painter->drawText(boundingBox, Qt::AlignCenter, text);
110 QRect bbPixmap(boundingBox.center().x() - boundingBox.width() / 4, boundingBox.center().y() - boundingBox.height() / 4, boundingBox.width() / 2, boundingBox.height() / 2);
111 painter->drawPixmap(bbPixmap, pixmap);
138 QPointF inLocal = point - scenePos();