| 163 | } |
| 164 | |
| 165 | void OutputPane::scrollToBottom() |
| 166 | { |
| 167 | d->outputEdit->verticalScrollBar()->setValue(d->outputEdit->verticalScrollBar()->maximum()); |
| 168 | // QPlainTextEdit destroys the first calls value in case of multiline |
| 169 | // text, so make sure that the scroll bar actually gets the value set. |
| 170 | // Is a noop if the first call succeeded. |
| 171 | d->outputEdit->verticalScrollBar()->setValue(d->outputEdit->verticalScrollBar()->maximum()); |
| 172 | } |
| 173 | |
| 174 | void OutputPane::appendCustomText(const QString &textIn, AppendMode mode, const QTextCharFormat &format) |
| 175 | { |