| 24 | } |
| 25 | |
| 26 | void 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 | |
| 34 | MeasurementAnnotationTool::MeasurementAnnotationTool(AnnotationWorkstationExtensionPlugin* annotationPlugin, PathologyViewer* viewer) : |
| 35 | AnnotationTool(annotationPlugin, viewer), |
nothing calls this directly
no outgoing calls
no test coverage detected