diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-08-13 02:52:59 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-08-13 02:52:59 (GMT) |
commit | c65d294a7a6adb2a83271904db74fe3598af1256 (patch) | |
tree | ab915226ab0d5d6597902326c37ccf54eafa2941 /src | |
parent | 89a2087b7ec5e36f7f4dd16d942aa23d2c7a6042 (diff) | |
download | Qt-c65d294a7a6adb2a83271904db74fe3598af1256.zip Qt-c65d294a7a6adb2a83271904db74fe3598af1256.tar.gz Qt-c65d294a7a6adb2a83271904db74fe3598af1256.tar.bz2 |
doc
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/fx/qfxwebview.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp index 37e5d59..a80152c 100644 --- a/src/declarative/fx/qfxwebview.cpp +++ b/src/declarative/fx/qfxwebview.cpp @@ -523,6 +523,37 @@ void QFxWebView::setCacheSize(int pixels) d->max_imagecache_size = pixels; } +/*! + \qmlproperty list<object> WebView::javaScriptWindowObjects + + This property is a list of object that are available from within + the webview's JavaScript context. + + The \a object will be inserted as a child of the frame's window + object, under the name given by the attached property \c WebView.windowObjectName. + + \qml + WebView { + javaScriptWindowObjects: Object { + WebView.windowObjectName: "coordinates" + } + } + \endqml + + Properties of the object will be exposed as JavaScript properties and slots as + JavaScript methods. + + If Javascript is not enabled for this page, then this property does nothing. +*/ + +/*! + \property QFxWebView::javaScriptWindowObjects + + The list of object that are available from within + the webview's JavaScript context. + + \sa QWebFrame::addToJavaScriptWindowObject +*/ QmlList<QObject *> *QFxWebView::javaScriptWindowObjects() { Q_D(QFxWebView); |