| 90 | } |
| 91 | |
| 92 | std::optional<QColor> foregroundColor(const QTextFormat& format) |
| 93 | { |
| 94 | if (!format.hasProperty(QTextFormat::ForegroundBrush)) |
| 95 | return std::nullopt; |
| 96 | return format.foreground().color(); |
| 97 | } |
| 98 | |
| 99 | std::optional<QColor> backgroundColor(const QTextFormat& format) |
| 100 | { |
no test coverage detected