| 42 | } |
| 43 | |
| 44 | void LogWindow::appendText(const QString& text) |
| 45 | { |
| 46 | moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); // move cursor to end, since text is inserted at cursor |
| 47 | insertPlainText(text); |
| 48 | // show log window |
| 49 | qobject_cast<QWidget*>(this->parent())->show(); |
| 50 | } |
| 51 | |
| 52 | void LogWindow::appendNewHeader(const LogWindow::LogState state, const String& heading, const String& body) |
| 53 | { |
no test coverage detected