- improved styling of stacktrace

This commit is contained in:
Dorian Zedler 2020-11-26 18:27:05 +01:00
parent d1b04623f8
commit e6d21804ef
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
2 changed files with 7 additions and 4 deletions

View file

@ -370,7 +370,7 @@ void LinboBackend::readFromStdout() {
QString stdOut = this->asynchronosProcess->readAllStandardOutput();
QStringList lines = stdOut.split("\n");
for(QString line : lines) {
this->logger->log(line, LinboLogType::StdOut);
this->logger->log(line.simplified(), LinboLogType::StdOut);
}
}
@ -378,7 +378,7 @@ void LinboBackend::readFromStderr() {
QString stdOut = this->asynchronosProcess->readAllStandardError();
QStringList lines = stdOut.split("\n");
for(QString line : lines) {
this->logger->log(line, LinboLogType::StdErr);
this->logger->log(line.simplified(), LinboLogType::StdErr);
}
}

View file

@ -229,10 +229,13 @@ void LinboStartActions::resizeAndPositionAllItems() {
this->errorLabelFont.setPixelSize(this->logFont.pixelSize() * 1.5);
this->errorLabel->setFont(this->errorLabelFont);
this->errorDetailsLabel->setGeometry((this->width() * 0.3) / 2, this->errorLabel->height(), this->width() * 0.7, this->height() * 0.6);
this->errorDetailsFont.setPixelSize(this->errorLabelFont.pixelSize() / 2);
int errorDetailsFontHeight = this->height() * 0.6;
this->errorDetailsFont.setPixelSize(errorDetailsFontHeight / 12.5);
this->errorDetailsLabel->setFont(this->errorDetailsFont);
this->errorDetailsLabel->move((this->width() - this->errorDetailsLabel->width()) / 2, this->errorLabel->height());
this->errorDetailsLabel->setFixedHeight(errorDetailsFontHeight);
this->resetErrorButton->setGeometry((this->width() - this->cancelButton->width()) / 2, this->height() - this->cancelButton->width() * 1.1, this->cancelButton->width(), this->cancelButton->width());
this->inited = true;