]> git.lyx.org Git - features.git/commitdiff
Coding style, thanks Abdel.
authorPavel Sanda <sanda@lyx.org>
Mon, 17 May 2010 08:15:04 +0000 (08:15 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 17 May 2010 08:15:04 +0000 (08:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34417 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiProgressView.cpp
src/frontends/qt4/GuiProgressView.h

index edc0d8530d01a002be7fdf6ccd014ff4f3240ee0..9bcbad01fe8ac08ed7381cb6498f1c9e3f036856 100644 (file)
@@ -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);
index 471ca08ae21fe26971342457d7046a6a2ee33b9e..a3a2a721e8962b63a6bb6a9a7fc7684f705cf453 100644 (file)
@@ -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*);