From: Pavel Sanda Date: Mon, 17 May 2010 08:15:04 +0000 (+0000) Subject: Coding style, thanks Abdel. X-Git-Tag: 2.0.0~3256 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7ee7b892d0e8d9a5018ff93ac154c304fa8cd168;p=features.git Coding style, thanks Abdel. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34417 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiProgressView.cpp b/src/frontends/qt4/GuiProgressView.cpp index edc0d8530d..9bcbad01fe 100644 --- a/src/frontends/qt4/GuiProgressView.cpp +++ b/src/frontends/qt4/GuiProgressView.cpp @@ -51,7 +51,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area, 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, @@ -167,7 +167,7 @@ void GuiProgressView::clearText() { if (widget_->autoClearCB->isChecked()){ widget_->outTE->clear(); - eolnLast = true; + eol_last_ = true; } } @@ -177,7 +177,7 @@ void GuiProgressView::appendLyXErrText(QString const & text) 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 @@ -185,7 +185,7 @@ void GuiProgressView::appendLyXErrText(QString const & text) // WARNING: processing events could cause crashes! // TODO: find a better solution if (text.endsWith("\n")) { - eolnLast = true; + eol_last_ = true; QApplication::processEvents(); } } @@ -197,9 +197,9 @@ void GuiProgressView::appendText(QString const & text) 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); diff --git a/src/frontends/qt4/GuiProgressView.h b/src/frontends/qt4/GuiProgressView.h index 471ca08ae2..a3a2a721e8 100644 --- a/src/frontends/qt4/GuiProgressView.h +++ b/src/frontends/qt4/GuiProgressView.h @@ -76,7 +76,7 @@ private Q_SLOTS: private: ProgressViewWidget * widget_; /// did the last message contained eoln? (lyxerr X statusbar conflicts) - bool eolnLast; + bool eol_last_; void levelChanged(); void showEvent(QShowEvent*);