Qt::WindowFlags flags)
: DockView(parent, "progress", qt_("Progress/Debug Messages"), area, flags)
{
- eolnLast = true;
+ eol_last_ = true;
widget_ = new ProgressViewWidget();
widget_->setMinimumHeight(150);
widget_->debugMessagesTW->setSizePolicy(QSizePolicy::Ignored,
{
if (widget_->autoClearCB->isChecked()){
widget_->outTE->clear();
- eolnLast = true;
+ eol_last_ = true;
}
}
widget_->outTE->moveCursor(QTextCursor::End);
widget_->outTE->insertPlainText(text);
widget_->outTE->ensureCursorVisible();
- eolnLast = false;
+ eol_last_ = false;
// Give the user a chance to disable debug messages because
// showing Debug::ANY messages completely blocks the GUI.
// Text is not always send as the whole line, so we must be
// WARNING: processing events could cause crashes!
// TODO: find a better solution
if (text.endsWith("\n")) {
- eolnLast = true;
+ eol_last_ = true;
QApplication::processEvents();
}
}
return;
QString str = GuiProgress::currentTime();
str += ": " + text;
- if (!eolnLast)
+ if (!eol_last_)
str = "\n" + str;
- eolnLast = text.endsWith("\n");
+ eol_last_ = text.endsWith("\n");
widget_->outTE->moveCursor(QTextCursor::End);
widget_->outTE->insertPlainText(str);