| 1720 | } |
| 1721 | |
| 1722 | void 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 | |
| 1736 | void PageViewAnnotator::setAnnotationInnerColor(const QColor &color) |
| 1737 | { |