diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-21 02:02:20 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-21 02:02:20 (GMT) |
commit | f92518f6de1a13b591fb2c2037714b213bdcff89 (patch) | |
tree | 95649cb045f4b926d2ee214beaad5627b0ef7c53 /tools/qml/loggerwidget.cpp | |
parent | e79202be457298c48b13eef4f8c35df186216aea (diff) | |
download | Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.zip Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.tar.gz Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.tar.bz2 |
Make logger widget thread safe.
Diffstat (limited to 'tools/qml/loggerwidget.cpp')
-rw-r--r-- | tools/qml/loggerwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qml/loggerwidget.cpp b/tools/qml/loggerwidget.cpp index c5548b7..015d1b0 100644 --- a/tools/qml/loggerwidget.cpp +++ b/tools/qml/loggerwidget.cpp @@ -53,9 +53,9 @@ LoggerWidget::LoggerWidget(QWidget *parent) : setWindowTitle(tr("Qt Declarative UI Viewer - Logger")); } -void LoggerWidget::append(QtMsgType /*type*/, const char *msg) +void LoggerWidget::append(const QString &msg) { - appendPlainText(QString::fromAscii(msg)); + appendPlainText(msg); if (!m_keepClosed && !isVisible()) setVisible(true); |