MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / paint

Method paint

tools/monitor/Node.cpp:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void
60Monitor::Node::paint(QPainter *painter,const QStyleOptionGraphicsItem *option,QWidget *widget)
61{
62 // set the node color
63 QPen pen;
64 pen.setColor(treeNode_->color(1).value<QColor>());
65 painter->setPen(pen);
66
67 // call the base class to draw the text.
68 this->QGraphicsTextItem::paint(painter, option, widget);
69
70 // put a border around the node
71 painter->drawRect (boundingRect().adjusted(2, 2, -2, -2));
72
73}
74
75void
76Monitor::Node::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)

Callers

nothing calls this directly

Calls 3

setColorMethod · 0.80
colorMethod · 0.80
setPenMethod · 0.80

Tested by

no test coverage detected