| 182 | } |
| 183 | |
| 184 | QSize ProblemInlineNoteProvider::inlineNoteSize(const KTextEditor::InlineNote& note) const |
| 185 | { |
| 186 | InlineNoteLayout layout; |
| 187 | doInlineNoteLayout(note, &layout); |
| 188 | |
| 189 | const auto prob = m_problemForLine[note.position().line()]; |
| 190 | QFont font = note.font(); |
| 191 | font.setItalic(true); |
| 192 | const QFontMetrics metric(font); |
| 193 | const QRect boundingRect = metric.boundingRect(prob->description()); |
| 194 | return {layout.descriptionX + boundingRect.width() + layout.rightMargin, note.lineHeight()}; |
| 195 | } |
| 196 | |
| 197 | void ProblemInlineNoteProvider::paintInlineNote(const KTextEditor::InlineNote& note, QPainter& painter, |
| 198 | Qt::LayoutDirection direction) const |
nothing calls this directly
no test coverage detected