diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-25 14:27:30 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-25 14:29:06 (GMT) |
commit | 9d8f5dcb46f64ee2f5e205100b603f6d01f1381b (patch) | |
tree | 4ced780e329149d1cb50d7fa2dea604beab31330 /src/script | |
parent | e6647776249e0e3ac9bac38d72965aa87b607859 (diff) | |
download | Qt-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.cpp | 3 |
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 |