From c65d294a7a6adb2a83271904db74fe3598af1256 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Thu, 13 Aug 2009 12:52:59 +1000 Subject: doc --- src/declarative/fx/qfxwebview.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 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 *QFxWebView::javaScriptWindowObjects() { Q_D(QFxWebView); -- cgit v0.12