MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / paint

Method paint

ASAP/annotation/RectangleAnnotationTool.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void RectangleAnnotationTool::QGraphicsTextItemWithBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *o, QWidget *w) {
30 painter->setPen(Qt::NoPen);
31 painter->setBrush(QBrush(QColor(0, 0, 0, 75)));
32 painter->drawRect(boundingRect().adjusted(-5, -5, 5, 5));
33 painter->setBrush(QBrush(Qt::white));
34 QGraphicsTextItem::paint(painter, o, w);
35}
36
37RectangleAnnotationTool::RectangleAnnotationTool(AnnotationWorkstationExtensionPlugin* annotationPlugin, PathologyViewer* viewer) :
38AnnotationTool(annotationPlugin, viewer),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected