summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-12-30 17:16:16 +1000
committerJoona Petrell <joona.t.petrell@nokia.com>2010-12-30 17:18:15 +1000
commit2de60ba30f86a9dd338359f7269b62ca5d0a2c46 (patch)
treea9aa6940e65eb7780899b5435887a72f16d313c1 /tools/qml
parent042e797a21a88ccafbaf54bbcfbf1e8d75b33740 (diff)
Forward qmlviewer traces to system's default message handler on Symbian
Task-number: QTBUG-16353 Reviewed-by: Christopher Ham
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index b9513b9ac9..2df96c0b85 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -88,6 +88,9 @@ void myMessageOutput(QtMsgType type, const char *msg)
::write(fd, "\n", 1);
::fsync(fd);
+ if (systemMsgOutput)
+ systemMsgOutput(type, msg);
+
switch (type) {
case QtFatalMsg:
abort();
@@ -529,11 +532,7 @@ QDeclarativeViewer *openFile(const QString &fileName)
int main(int argc, char ** argv)
{
-#if defined (Q_OS_SYMBIAN)
- qInstallMsgHandler(myMessageOutput);
-#else
systemMsgOutput = qInstallMsgHandler(myMessageOutput);
-#endif
#if defined (Q_WS_X11) || defined (Q_WS_MAC)
//### default to using raster graphics backend for now