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

Method paint

ASAP/annotation/MeasurementAnnotationTool.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected