forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.9'
Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri src/plugins/pythoneditor/pythoneditorplugin.cpp Change-Id: I9a95df5e16b34538539ced7dfc5d326b700794e6
This commit is contained in:
@@ -41,7 +41,6 @@ public:
|
||||
QTextCharFormat formats[NumberOfFormats];
|
||||
QTextCursor cursor;
|
||||
AnsiEscapeCodeHandler escapeCodeHandler;
|
||||
OutputFormat lastFormat = NumberOfFormats;
|
||||
bool boldFontEnabled = true;
|
||||
};
|
||||
|
||||
@@ -72,9 +71,8 @@ void OutputFormatter::setPlainTextEdit(QPlainTextEdit *plainText)
|
||||
|
||||
void OutputFormatter::appendMessage(const QString &text, OutputFormat format)
|
||||
{
|
||||
if (!d->cursor.atEnd() && format != d->lastFormat)
|
||||
if (!d->cursor.atEnd() && text.startsWith('\n'))
|
||||
d->cursor.movePosition(QTextCursor::End);
|
||||
d->lastFormat = format;
|
||||
appendMessage(text, d->formats[format]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user