| 20 | } |
| 21 | |
| 22 | void PdfDebugItemTextBox::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| 23 | { |
| 24 | Q_UNUSED(option) |
| 25 | Q_UNUSED(widget) |
| 26 | |
| 27 | switch (_textBox->type()) |
| 28 | { |
| 29 | case PDFTextBox::Text: |
| 30 | painter->setPen(QPen(QColor(255, 255, 0, 128), 1)); |
| 31 | break; |
| 32 | case PDFTextBox::SubText: |
| 33 | painter->setPen(QPen(QColor(0, 255, 0, 128), 0.5)); |
| 34 | break; |
| 35 | case PDFTextBox::Pad: |
| 36 | painter->setPen(QPen(QColor(255, 0, 0, 128), 1)); |
| 37 | break; |
| 38 | } |
| 39 | painter->drawRect(textBox()->boundingRect()); |
| 40 | } |
nothing calls this directly
no test coverage detected