summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-08-27 23:53:20 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-08-27 23:53:20 (GMT)
commit70e650500e6e13be336857dac17a110097da70ef (patch)
treefb132a0be6632ded120aaa2e0c8f2f764f0b89cc /src/declarative/qml/qmlengine.cpp
parent648fa4818d875ec76c304b79e474a406d265bd0f (diff)
downloadQt-70e650500e6e13be336857dac17a110097da70ef.zip
Qt-70e650500e6e13be336857dac17a110097da70ef.tar.gz
Qt-70e650500e6e13be336857dac17a110097da70ef.tar.bz2
Implement (parts of) XMLHttpRequest
This is the first step to allowing QML to interact with REST style APIs in the same way as a webbrowser can.
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r--src/declarative/qml/qmlengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index ea00d65..3f6f9b4 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -78,6 +78,7 @@
#include <private/qmlbinding_p.h>
#include <private/qmlvme_p.h>
#include <private/qmlenginedebug_p.h>
+#include <private/qmlxmlhttprequest_p.h>
Q_DECLARE_METATYPE(QmlMetaProperty)
Q_DECLARE_METATYPE(QList<QObject *>);
@@ -104,6 +105,8 @@ QmlEnginePrivate::QmlEnginePrivate(QmlEngine *e)
QScriptValue qtObject =
scriptEngine.newQMetaObject(StaticQtMetaObject::get());
scriptEngine.globalObject().setProperty(QLatin1String("Qt"), qtObject);
+
+ qt_add_qmlxmlhttprequest(&scriptEngine);
}
QmlEnginePrivate::~QmlEnginePrivate()