OutputWindow: Fix spelling of private member.

Change-Id: I94e4cc355f3fd4575f560d4c65c7dc24df1a4cc7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2013-09-02 20:11:42 +02:00
committed by Orgad Shaneh
parent 72d173829c
commit 54c856d3bc
2 changed files with 6 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ void OutputWindow::showEvent(QShowEvent *e)
m_scrollToBottom = false; m_scrollToBottom = false;
} }
QString OutputWindow::doNewlineEnfocement(const QString &out) QString OutputWindow::doNewlineEnforcement(const QString &out)
{ {
m_scrollToBottom = true; m_scrollToBottom = true;
QString s = out; QString s = out;
@@ -208,7 +208,7 @@ void OutputWindow::appendMessage(const QString &output, OutputFormat format)
if (format == ErrorMessageFormat || format == NormalMessageFormat) { if (format == ErrorMessageFormat || format == NormalMessageFormat) {
m_formatter->appendMessage(doNewlineEnfocement(out), format); m_formatter->appendMessage(doNewlineEnforcement(out), format);
} else { } else {
@@ -240,7 +240,7 @@ void OutputWindow::appendMessage(const QString &output, OutputFormat format)
m_formatter->appendMessage(QLatin1Char('\n') + s, format); m_formatter->appendMessage(QLatin1Char('\n') + s, format);
} }
} else { } else {
m_formatter->appendMessage(doNewlineEnfocement(out), format); m_formatter->appendMessage(doNewlineEnforcement(out), format);
} }
} }
@@ -259,12 +259,12 @@ void OutputWindow::appendText(const QString &textIn, const QTextCharFormat &form
QTextCursor cursor = QTextCursor(document()); QTextCursor cursor = QTextCursor(document());
cursor.movePosition(QTextCursor::End); cursor.movePosition(QTextCursor::End);
cursor.beginEditBlock(); cursor.beginEditBlock();
cursor.insertText(doNewlineEnfocement(text), format); cursor.insertText(doNewlineEnforcement(text), format);
if (m_maxLineCount > 0 && document()->blockCount() >= m_maxLineCount) { if (m_maxLineCount > 0 && document()->blockCount() >= m_maxLineCount) {
QTextCharFormat tmp; QTextCharFormat tmp;
tmp.setFontWeight(QFont::Bold); tmp.setFontWeight(QFont::Bold);
cursor.insertText(doNewlineEnfocement(tr("Additional output omitted\n")), tmp); cursor.insertText(doNewlineEnforcement(tr("Additional output omitted\n")), tmp);
} }
cursor.endEditBlock(); cursor.endEditBlock();

View File

@@ -80,7 +80,7 @@ protected:
private: private:
void enableUndoRedo(); void enableUndoRedo();
QString doNewlineEnfocement(const QString &out); QString doNewlineEnforcement(const QString &out);
Core::IContext *m_outputWindowContext; Core::IContext *m_outputWindowContext;
Utils::OutputFormatter *m_formatter; Utils::OutputFormatter *m_formatter;