Automatically scroll to the bottom of the console.

This commit is contained in:
John Maguire 2012-09-26 18:42:22 +02:00
parent 8887460cc7
commit a934c75f18
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include "console.h"
#include <QFont>
#include <QScrollBar>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlRecord>
@ -41,4 +42,7 @@ void Console::RunQuery() {
query.next();
}
ui_.output->verticalScrollBar()->setValue(
ui_.output->verticalScrollBar()->maximum());
}