| 110 | } |
| 111 | |
| 112 | void GitEditorPrivate::updateRequest(const QRect &r, int dy) |
| 113 | { |
| 114 | if (dy) { |
| 115 | extraArea->scroll(0, dy); |
| 116 | } else if (r.width() > 4) { // wider than cursor width, not just cursor blinking |
| 117 | extraArea->update(0, r.y(), extraArea->width(), r.height()); |
| 118 | } |
| 119 | |
| 120 | if (r.contains(q->viewport()->rect())) |
| 121 | updateExtraAreaWidth(); |
| 122 | } |
| 123 | |
| 124 | QTextBlock GitEditorPrivate::nextVisibleBlock(const QTextBlock &block) const |
| 125 | { |