1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-03 11:53:41 +02:00

gui/SearchWindow.cpp: Force scrollbar to the bottom when adding text to m_output.

This commit is contained in:
Henrik Hautakoski 2020-04-11 16:29:42 +02:00
parent c206ec764f
commit bfc40bd3e7

View file

@ -23,6 +23,7 @@
*/ */
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QScrollBar>
#include <QGridLayout> #include <QGridLayout>
#include <QFuture> #include <QFuture>
#include <QtConcurrent> #include <QtConcurrent>
@ -175,6 +176,9 @@ void SearchWindow::output(const QString& html)
} else { } else {
m_output.setHtml(html); m_output.setHtml(html);
} }
// Force scrollbar to the bottom.
m_output.verticalScrollBar()->setValue(m_output.verticalScrollBar()->maximum());
} }
void SearchWindow::searchStarted() void SearchWindow::searchStarted()