Skip to content
Snippets Groups Projects
Commit 9c03475c authored by dt's avatar dt
Browse files

Make new application output always palette text color

Reviewed-by: default avatarmae <qt-info@nokia.com>
parent 377dbaa8
No related branches found
No related tags found
No related merge requests found
...@@ -415,6 +415,10 @@ void OutputWindow::appendOutput(const QString &out) ...@@ -415,6 +415,10 @@ void OutputWindow::appendOutput(const QString &out)
s.chop(1); s.chop(1);
} }
setMaximumBlockCount(MaxBlockCount); setMaximumBlockCount(MaxBlockCount);
QTextCharFormat format;
format.setForeground(palette().text().color());
setCurrentCharFormat(format);
appendPlainText(out); appendPlainText(out);
enableUndoRedo(); enableUndoRedo();
} }
...@@ -447,6 +451,9 @@ void OutputWindow::appendOutputInline(const QString &out) ...@@ -447,6 +451,9 @@ void OutputWindow::appendOutputInline(const QString &out)
m_enforceNewline = true; m_enforceNewline = true;
s.chop(1); s.chop(1);
} }
QTextCharFormat format;
format.setForeground(palette().text().color());
setCurrentCharFormat(format);
appendPlainText(s); appendPlainText(s);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment