74 if (QThread::currentThread() != QApplication::instance()->thread())
76 QMetaObject::invokeMethod(
this,
"slotLog",Qt::QueuedConnection, Q_ARG(
Logtype, _type), Q_ARG(QString, _message));
83 textColor = QColor(0,160,0);
86 textColor = QPalette{}.windowText().color();
89 textColor = QColor(160,160,0);
92 textColor = QColor(250,0,0);
95 textColor = QColor(0,0,250);
102 statusBar_->showMessage(_message,textColor, 4000);
LoggerWidget * logWidget_
Textedit at the bottom for log messages.
Logtype
Log types for Message Window.
void slotLog(Logtype _type, QString _message)
Slot writing everything to the Logger widget.
void append(const QString &_text, Logtype _type)
Append a new logmessage to log viewer.