MCPcopy Create free account
hub / github.com/KDE/okular / widthIcon

Method widthIcon

part/annotationactionhandler.cpp:451–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451const 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
463const QIcon AnnotationActionHandlerPrivate::stampIcon(const QString &stampIconName)
464{

Callers 1

Calls 5

fillMethod · 0.80
QIconClass · 0.70
heightMethod · 0.45
widthMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected