| 41 | } |
| 42 | |
| 43 | void DotQtAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, |
| 44 | QWidget *widget) { |
| 45 | _currentLOD = option->levelOfDetailFromTransform(painter->worldTransform()); |
| 46 | painter->setPen(Qt::NoPen); |
| 47 | if (isSelected()) { |
| 48 | painter->setBrush(QBrush(_rectSelectedColor)); |
| 49 | } |
| 50 | else { |
| 51 | painter->setBrush(QBrush(getDrawingColor())); |
| 52 | } |
| 53 | if (isSelected()) { |
| 54 | painter->drawEllipse(QPointF(), 1.5 * _rectSize / _currentLOD, 1.5 * _rectSize / _currentLOD); |
| 55 | } |
| 56 | else { |
| 57 | painter->drawEllipse(QPointF(), _rectSize / _currentLOD, _rectSize / _currentLOD); |
| 58 | } |
| 59 | } |
nothing calls this directly
no outgoing calls
no test coverage detected