From a934c75f18b7bd70455015f224e2d2e35f216ab5 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 26 Sep 2012 18:42:22 +0200 Subject: [PATCH] Automatically scroll to the bottom of the console. --- src/ui/console.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/console.cpp b/src/ui/console.cpp index 5a89d9584..fa1f5edb3 100644 --- a/src/ui/console.cpp +++ b/src/ui/console.cpp @@ -1,6 +1,7 @@ #include "console.h" #include +#include #include #include #include @@ -41,4 +42,7 @@ void Console::RunQuery() { query.next(); } + + ui_.output->verticalScrollBar()->setValue( + ui_.output->verticalScrollBar()->maximum()); }