1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

GCS/console: Fix coloring misbehavior.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@548 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
ephy 2010-04-25 18:50:11 +00:00 committed by ephy
parent aaef72955e
commit 2dc193ae5a

View File

@ -128,9 +128,7 @@ void TextEditLoggerEngine::writeToTextEdit(const QString& level, const QList<QVa
count++;
}
Q_ASSERT(m_textEdit);
QTextCharFormat format = m_textEdit->currentCharFormat();
format.setForeground(QBrush(color));
m_textEdit->setCurrentCharFormat(format);
appendText = QString("<font color=%1>%2</font>").arg(color.name()).arg(appendText);
m_textEdit->append(appendText);
if (scroll)
sb->setValue(sb->maximum());