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 "console.h"
|
||||||
|
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
#include <QScrollBar>
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
#include <QSqlRecord>
|
#include <QSqlRecord>
|
||||||
|
@ -41,4 +42,7 @@ void Console::RunQuery() {
|
||||||
|
|
||||||
query.next();
|
query.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui_.output->verticalScrollBar()->setValue(
|
||||||
|
ui_.output->verticalScrollBar()->maximum());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue