| 356 | } |
| 357 | |
| 358 | void CodeEditor::setDebugInfoPos(const QRect &rect, int dy) |
| 359 | { |
| 360 | if (dy) |
| 361 | debugInfo->scroll(0, dy); |
| 362 | else |
| 363 | debugInfo->update(0, rect.y(), debugInfo->width(), rect.height()); |
| 364 | |
| 365 | |
| 366 | if (rect.contains(viewport()->rect())) |
| 367 | setViewportWidth(0); |
| 368 | } |
| 369 | |
| 370 | |
| 371 |