| 372 | |
| 373 | |
| 374 | void CodeEditor::resizeEvent(QResizeEvent *e) |
| 375 | { |
| 376 | QPlainTextEdit::resizeEvent(e); |
| 377 | |
| 378 | QRect cr = contentsRect(); |
| 379 | lineNumbers->setGeometry(QRect(cr.left(), cr.top()+debugInfoOffset(), lineNumbersWidth(), cr.height())); |
| 380 | if (loadContentsButton) { |
| 381 | loadContentsButton->move(cr.left()+lineNumbersWidth(), cr.top()); |
| 382 | } |
| 383 | |
| 384 | debugInfo->setGeometry(QRect(cr.right()-debugInfoWidth(), cr.top()+debugInfoOffset(), debugInfoWidth(), cr.height())); |
| 385 | |
| 386 | editorHeader->setGeometry(QRect(cr.left(), cr.top(), cr.width(), debugInfoOffset())); |
| 387 | } |
| 388 | |
| 389 | void CodeEditor::showEvent(QShowEvent *event) |
| 390 | { |