Coding style, thanks Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-05-17 08:15:04 +00:00
parent 7bc7f16c3c
commit 7ee7b892d0
2 changed files with 7 additions and 7 deletions

View File

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

View File

@ -76,7 +76,7 @@ private Q_SLOTS:
private: private:
ProgressViewWidget * widget_; ProgressViewWidget * widget_;
/// did the last message contained eoln? (lyxerr X statusbar conflicts) /// did the last message contained eoln? (lyxerr X statusbar conflicts)
bool eolnLast; bool eol_last_;
void levelChanged(); void levelChanged();
void showEvent(QShowEvent*); void showEvent(QShowEvent*);