| 449 | } |
| 450 | |
| 451 | const QIcon AnnotationActionHandlerPrivate::widthIcon(double width) |
| 452 | { |
| 453 | QPixmap pm(32, 32); |
| 454 | pm.fill(Qt::transparent); |
| 455 | QPainter p(&pm); |
| 456 | p.setRenderHint(QPainter::Antialiasing); |
| 457 | p.setPen(QPen(Qt::black, 2 * width, Qt::SolidLine, Qt::RoundCap)); |
| 458 | p.drawLine(0, pm.height() / 2, pm.width(), pm.height() / 2); |
| 459 | p.end(); |
| 460 | return QIcon(pm); |
| 461 | } |
| 462 | |
| 463 | const QIcon AnnotationActionHandlerPrivate::stampIcon(const QString &stampIconName) |
| 464 | { |