diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-12-08 06:27:50 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-12-08 06:27:50 (GMT) |
commit | a8944d4786fa0afae27a8843183ec1a12e586c5f (patch) | |
tree | 250c40794b943d036b82263bddc980d34b85858b /src/declarative | |
parent | d39d4e4d553fc72fce5e6716ec8ab4224db0b08b (diff) | |
download | Qt-a8944d4786fa0afae27a8843183ec1a12e586c5f.zip Qt-a8944d4786fa0afae27a8843183ec1a12e586c5f.tar.gz Qt-a8944d4786fa0afae27a8843183ec1a12e586c5f.tar.bz2 |
document script extension problem
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index f45b7b8..63d5b70 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -150,8 +150,15 @@ QmlScriptEngine::QmlScriptEngine(QmlEnginePrivate *priv) offlineStoragePath = QDesktopServices::storageLocation(QDesktopServices::DataLocation).replace(QLatin1Char('/'), QDir::separator()) + QDir::separator() + QLatin1String("QML") + QDir::separator() + QLatin1String("OfflineStorage"); + + qt_add_qmlxmlhttprequest(this); qt_add_qmlsqldatabase(this); + // XXX A Multimedia "Qt.Sound" class also needs to be made available, + // XXX but we don't want a dependency in that cirection. + // XXX When the above a done some better way, that way should also be + // XXX used to add Qt.Sound class. + //types qtObject.setProperty(QLatin1String("rgba"), newFunction(QmlEnginePrivate::rgba, 4)); |