From e6d21804ef567cdccfc4af20f11e325f73e547c3 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 26 Nov 2020 18:27:05 +0100 Subject: [PATCH] - improved styling of stacktrace --- sources/backend/linbobackend.cpp | 4 ++-- sources/linbostartactions.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources/backend/linbobackend.cpp b/sources/backend/linbobackend.cpp index e9e32bb..16a519a 100644 --- a/sources/backend/linbobackend.cpp +++ b/sources/backend/linbobackend.cpp @@ -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); } } diff --git a/sources/linbostartactions.cpp b/sources/linbostartactions.cpp index f8581d8..34c990c 100644 --- a/sources/linbostartactions.cpp +++ b/sources/linbostartactions.cpp @@ -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;