| 230 | } |
| 231 | |
| 232 | void MarkdownEditor::updateLineNumberArea(const QRect &rect, int dy) |
| 233 | { |
| 234 | if (dy) |
| 235 | lineNumberArea->scroll(0, dy); |
| 236 | else |
| 237 | lineNumberArea->update(0, rect.y(), lineNumberArea->width(), rect.height()); |
| 238 | |
| 239 | if (rect.contains(viewport()->rect())) |
| 240 | updateLineNumberAreaWidth(0); |
| 241 | } |
| 242 | |
| 243 | void MarkdownEditor::editorFontChanged(const QFont &font) |
| 244 | { |