From 9c03475c8f604e883ce47318ae7ffaf3c69e00ec Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Thu, 7 Jan 2010 19:59:15 +0100 Subject: [PATCH] Make new application output always palette text color Reviewed-by: mae <qt-info@nokia.com> --- src/plugins/projectexplorer/outputwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp index 9c0dc008e9a..875594e68a5 100644 --- a/src/plugins/projectexplorer/outputwindow.cpp +++ b/src/plugins/projectexplorer/outputwindow.cpp @@ -415,6 +415,10 @@ void OutputWindow::appendOutput(const QString &out) s.chop(1); } setMaximumBlockCount(MaxBlockCount); + + QTextCharFormat format; + format.setForeground(palette().text().color()); + setCurrentCharFormat(format); appendPlainText(out); enableUndoRedo(); } @@ -447,6 +451,9 @@ void OutputWindow::appendOutputInline(const QString &out) m_enforceNewline = true; s.chop(1); } + QTextCharFormat format; + format.setForeground(palette().text().color()); + setCurrentCharFormat(format); appendPlainText(s); } -- GitLab