| 27 | } |
| 28 | |
| 29 | void 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 | |
| 37 | RectangleAnnotationTool::RectangleAnnotationTool(AnnotationWorkstationExtensionPlugin* annotationPlugin, PathologyViewer* viewer) : |
| 38 | AnnotationTool(annotationPlugin, viewer), |
nothing calls this directly
no outgoing calls
no test coverage detected