summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-25 14:27:30 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-25 14:29:06 (GMT)
commit9d8f5dcb46f64ee2f5e205100b603f6d01f1381b (patch)
tree4ced780e329149d1cb50d7fa2dea604beab31330 /src/script
parente6647776249e0e3ac9bac38d72965aa87b607859 (diff)
downloadQt-9d8f5dcb46f64ee2f5e205100b603f6d01f1381b.zip
Qt-9d8f5dcb46f64ee2f5e205100b603f6d01f1381b.tar.gz
Qt-9d8f5dcb46f64ee2f5e205100b603f6d01f1381b.tar.bz2
have the QtScript print() function use qDebug()
Makes it work with custom message handlers (qInstallMsgHandler()). Task-number: 233005
Diffstat (limited to 'src/script')
-rw-r--r--src/script/qscriptecmaglobal.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/qscriptecmaglobal.cpp b/src/script/qscriptecmaglobal.cpp
index a7cb115..b756a27 100644
--- a/src/script/qscriptecmaglobal.cpp
+++ b/src/script/qscriptecmaglobal.cpp
@@ -305,8 +305,7 @@ public:
}
if (context->state() != QScriptContext::ExceptionState) {
- QTextStream qout(stdout, QIODevice::WriteOnly);
- qout << result << endl;
+ qDebug(qPrintable(result));
context->setReturnValue(eng->undefinedValue());
}
#ifndef Q_SCRIPT_NO_EVENT_NOTIFY