diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 04:08:07 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 04:08:07 (GMT) |
commit | a8549cfee8b6ec393dcea6314e6ac7d6c102dc07 (patch) | |
tree | a12427d394bae5fc0080923e669a5a30c79c36b3 /src/declarative/qml/qmlengine_p.h | |
parent | 2d7a9570814891ba4a86ab9472d8c8ee8315b22b (diff) | |
download | Qt-a8549cfee8b6ec393dcea6314e6ac7d6c102dc07.zip Qt-a8549cfee8b6ec393dcea6314e6ac7d6c102dc07.tar.gz Qt-a8549cfee8b6ec393dcea6314e6ac7d6c102dc07.tar.bz2 |
Webkit console.log() compatibility.
This allows avoiding the more non-standard print().
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index 2f41651..c11a399 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -269,6 +269,7 @@ public: static QScriptValue playSound(QScriptContext*, QScriptEngine*); static QScriptValue desktopOpenUrl(QScriptContext*, QScriptEngine*); static QScriptValue md5(QScriptContext*, QScriptEngine*); + static QScriptValue consoleLog(QScriptContext*, QScriptEngine*); static QScriptEngine *getScriptEngine(QmlEngine *e) { return &e->d_func()->scriptEngine; } static QmlEngine *getEngine(QScriptEngine *e) { return static_cast<QmlScriptEngine*>(e)->p->q_func(); } |