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

Method setAnnotationColor

part/pageviewannotator.cpp:1722–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720}
1721
1722void PageViewAnnotator::setAnnotationColor(const QColor &color)
1723{
1724 currentEngineElement().setAttribute(QStringLiteral("color"), color.name(QColor::HexRgb));
1725 QDomElement annotationElement = currentAnnotationElement();
1726 QString annotType = annotationElement.attribute(QStringLiteral("type"));
1727 if (annotType == QLatin1String("Typewriter")) {
1728 annotationElement.setAttribute(QStringLiteral("textColor"), color.name(QColor::HexRgb));
1729 } else {
1730 annotationElement.setAttribute(QStringLiteral("color"), color.name(QColor::HexRgb));
1731 }
1732 saveBuiltinAnnotationTools();
1733 selectLastTool();
1734}
1735
1736void PageViewAnnotator::setAnnotationInnerColor(const QColor &color)
1737{

Callers 1

slotSetColorMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected