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

Method stampIcon

part/annotationactionhandler.cpp:463–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463const QIcon AnnotationActionHandlerPrivate::stampIcon(const QString &stampIconName)
464{
465 QPixmap stampPix = Okular::AnnotationUtils::loadStamp(stampIconName, QSize(32, 32));
466 if (stampPix.width() == stampPix.height()) {
467 return QIcon(stampPix);
468 } else {
469 return QIcon::fromTheme(QStringLiteral("tag"));
470 }
471}
472
473void AnnotationActionHandlerPrivate::selectTool(int toolId)
474{

Callers 1

Calls 4

QIconClass · 0.70
QSizeClass · 0.50
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected