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

Method selectStampTool

part/pageviewannotator.cpp:1440–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440void PageViewAnnotator::selectStampTool(const QString &stampSymbol)
1441{
1442 QDomElement toolElement = builtinTool(STAMP_TOOL_ID);
1443 QDomElement engineElement = toolElement.firstChildElement(QStringLiteral("engine"));
1444 QDomElement annotationElement = engineElement.firstChildElement(QStringLiteral("annotation"));
1445 engineElement.setAttribute(QStringLiteral("hoverIcon"), stampSymbol);
1446 annotationElement.setAttribute(QStringLiteral("icon"), stampSymbol);
1447 saveBuiltinAnnotationTools();
1448 selectBuiltinTool(STAMP_TOOL_ID, ShowTip::Yes);
1449}
1450
1451void PageViewAnnotator::detachAnnotation()
1452{

Callers 1

slotStampToolSelectedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected