Automatically scroll to the bottom of the console.
This commit is contained in:
parent
8887460cc7
commit
a934c75f18
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue