| 493 | } |
| 494 | |
| 495 | void AnnotationActionHandlerPrivate::slotSetColor(AnnotationColor colorType, const QColor &color) |
| 496 | { |
| 497 | QColor selectedColor(color); |
| 498 | if (!selectedColor.isValid()) { |
| 499 | selectedColor = QColorDialog::getColor(currentColor, nullptr, i18nc("@title:window", "Select color")); |
| 500 | if (!selectedColor.isValid()) { |
| 501 | return; |
| 502 | } |
| 503 | } |
| 504 | if (colorType == AnnotationColor::Color) { |
| 505 | currentColor = selectedColor; |
| 506 | annotator->setAnnotationColor(selectedColor); |
| 507 | } else if (colorType == AnnotationColor::InnerColor) { |
| 508 | currentInnerColor = selectedColor; |
| 509 | annotator->setAnnotationInnerColor(selectedColor); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | void AnnotationActionHandlerPrivate::slotSelectAnnotationFont() |
| 514 | { |
nothing calls this directly
no test coverage detected