| 31 | } |
| 32 | |
| 33 | void PainterBase::drawDashedLine(const QPoint& from, const QPoint& to, QPainter* painter, const QColor& color) |
| 34 | { |
| 35 | QPen pen; |
| 36 | QVector<qreal> dashes; |
| 37 | dashes << 5 << 5 << 1 << 5; |
| 38 | pen.setDashPattern(dashes); |
| 39 | pen.setColor(color); |
| 40 | painter->save(); |
| 41 | painter->setPen(pen); |
| 42 | painter->drawLine(from, to); |
| 43 | painter->restore(); |
| 44 | } |
| 45 | |
| 46 | void PainterBase::drawCross(const QPoint& pos, QPainter* painter, const int size) |
| 47 | { |