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

Method setAnnotationInnerColor

part/pageviewannotator.cpp:1736–1746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1734}
1735
1736void PageViewAnnotator::setAnnotationInnerColor(const QColor &color)
1737{
1738 QDomElement annotationElement = currentAnnotationElement();
1739 if (color == Qt::transparent) {
1740 annotationElement.removeAttribute(QStringLiteral("innerColor"));
1741 } else {
1742 annotationElement.setAttribute(QStringLiteral("innerColor"), color.name(QColor::HexRgb));
1743 }
1744 saveBuiltinAnnotationTools();
1745 selectLastTool();
1746}
1747
1748void PageViewAnnotator::setAnnotationOpacity(double opacity)
1749{

Callers 1

slotSetColorMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected