1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +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 <QMessageBox>
#include <QScrollBar>
#include <QGridLayout>
#include <QFuture>
#include <QtConcurrent>
@ -175,6 +176,9 @@ void SearchWindow::output(const QString& html)
} else {
m_output.setHtml(html);
}
// Force scrollbar to the bottom.
m_output.verticalScrollBar()->setValue(m_output.verticalScrollBar()->maximum());
}
void SearchWindow::searchStarted()