Better scrolling behavior. The log is now aware if you are not at the

bottom and will not force scroll if so. Otherwise, it will bring the
horizontal scroll back to the left-edge.
knobtest
Elliott Liggett 2022-09-15 11:59:04 -07:00
rodzic 940f5fb961
commit b849df9f7f
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -57,7 +57,10 @@ void loggingWindow::acceptLogText(QString text)
{
QMutexLocker lock(&textMutex);
ui->logTextDisplay->appendPlainText(text);
horizLogScroll->setValue(horizLogScroll->minimum());
if(vertLogScroll->value() == vertLogScroll->maximum())
{
horizLogScroll->setValue(horizLogScroll->minimum());
}
}
void loggingWindow::sendToTermbin()