32 return Qt::darkYellow;
47 setWindowTitle(
"Message Panel");
49 setFont(QFont(
"Courier"));
54 QScrollBar* scrollbar = verticalScrollBar();
55 bool autoscroll = scrollbar->value() == scrollbar->maximum();
56 setTextColor(color(message.
level));
57 append(QString::fromStdString(message.
text));
59 QTextCursor c = textCursor();
60 c.movePosition(QTextCursor::End);
68 m_log->disconnect(
this);
FitLogLevel
enum class describing the log level of a message
Defines class JobMessagePanel.
the collected messages of a fitting session
const std::vector< Message > & messages() const
void messageAppended(const Message &message)
JobMessagePanel(QWidget *parent=nullptr)
void appendMessage(const FitLog::Message &message)