Commit 54c856d3 authored by Andre Hartmann's avatar Andre Hartmann Committed by Orgad Shaneh

OutputWindow: Fix spelling of private member.

Change-Id: I94e4cc355f3fd4575f560d4c65c7dc24df1a4cc7
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 72d17382
......@@ -177,7 +177,7 @@ void OutputWindow::showEvent(QShowEvent *e)
m_scrollToBottom = false;
}
QString OutputWindow::doNewlineEnfocement(const QString &out)
QString OutputWindow::doNewlineEnforcement(const QString &out)
{
m_scrollToBottom = true;
QString s = out;
......@@ -208,7 +208,7 @@ void OutputWindow::appendMessage(const QString &output, OutputFormat format)
if (format == ErrorMessageFormat || format == NormalMessageFormat) {
m_formatter->appendMessage(doNewlineEnfocement(out), format);
m_formatter->appendMessage(doNewlineEnforcement(out), format);
} else {
......@@ -240,7 +240,7 @@ void OutputWindow::appendMessage(const QString &output, OutputFormat format)
m_formatter->appendMessage(QLatin1Char('\n') + s, format);
}
} 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());
cursor.movePosition(QTextCursor::End);
cursor.beginEditBlock();
cursor.insertText(doNewlineEnfocement(text), format);
cursor.insertText(doNewlineEnforcement(text), format);
if (m_maxLineCount > 0 && document()->blockCount() >= m_maxLineCount) {
QTextCharFormat tmp;
tmp.setFontWeight(QFont::Bold);
cursor.insertText(doNewlineEnfocement(tr("Additional output omitted\n")), tmp);
cursor.insertText(doNewlineEnforcement(tr("Additional output omitted\n")), tmp);
}
cursor.endEditBlock();
......
......@@ -80,7 +80,7 @@ protected:
private:
void enableUndoRedo();
QString doNewlineEnfocement(const QString &out);
QString doNewlineEnforcement(const QString &out);
Core::IContext *m_outputWindowContext;
Utils::OutputFormatter *m_formatter;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment