| 345 | |
| 346 | |
| 347 | void CodeEditor::setLineNumbers(const QRect &rect, int dy) |
| 348 | { |
| 349 | if (dy) |
| 350 | lineNumbers->scroll(0, dy); |
| 351 | else |
| 352 | lineNumbers->update(0, rect.y(), lineNumbers->width(), rect.height()); |
| 353 | |
| 354 | if (rect.contains(viewport()->rect())) |
| 355 | setViewportWidth(0); |
| 356 | } |
| 357 | |
| 358 | void CodeEditor::setDebugInfoPos(const QRect &rect, int dy) |
| 359 | { |