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:
parent
c206ec764f
commit
bfc40bd3e7
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue