Skip to content
Snippets Groups Projects
Commit c1d93f4a authored by mae's avatar mae
Browse files

Fix scroll to bottom - again...

parent a7530267
No related merge requests found
...@@ -116,8 +116,10 @@ void CompileOutputWindow::appendText(const QString &text, const QTextCharFormat ...@@ -116,8 +116,10 @@ void CompileOutputWindow::appendText(const QString &text, const QTextCharFormat
cursor.endEditBlock(); cursor.endEditBlock();
if (shouldScroll) if (shouldScroll) {
m_textEdit->verticalScrollBar()->setValue(m_textEdit->verticalScrollBar()->maximum());
m_textEdit->setTextCursor(cursor); m_textEdit->setTextCursor(cursor);
}
} }
void CompileOutputWindow::clearContents() void CompileOutputWindow::clearContents()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment