forked from qt-creator/qt-creator
Separated child-process stdout/stderr, and seperated "our" output/errors.
So now the "Applciation Output" can distinguish between these four, and handle them appropriately.
This commit is contained in:
@@ -44,7 +44,7 @@ QmlOutputFormatter::QmlOutputFormatter(QObject *parent)
|
||||
{
|
||||
}
|
||||
|
||||
void QmlOutputFormatter::appendOutput(const QString &text)
|
||||
void QmlOutputFormatter::appendApplicationOutput(const QString &text, bool /*onStdErr*/)
|
||||
{
|
||||
QTextCharFormat normalFormat, linkFormat;
|
||||
normalFormat.setForeground(plainTextEdit()->palette().text().color());
|
||||
@@ -72,9 +72,9 @@ void QmlOutputFormatter::appendOutput(const QString &text)
|
||||
plainTextEdit()->insertPlainText(text.mid(index));
|
||||
}
|
||||
|
||||
void QmlOutputFormatter::appendError(const QString &text)
|
||||
void QmlOutputFormatter::appendMessage(const QString &text, bool isError)
|
||||
{
|
||||
appendOutput(text);
|
||||
appendApplicationOutput(text, isError);
|
||||
}
|
||||
|
||||
void QmlOutputFormatter::mousePressEvent(QMouseEvent * /*e*/)
|
||||
|
||||
Reference in New Issue
Block a user