summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-04-30 06:42:11 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-04-30 06:42:11 (GMT)
commitcc4c8562890784e1b4ca55612f8963e59f2e6bce (patch)
tree485036b0eb031db2fc59153073741e6d29fab77f /src/declarative
parentd4ac3b257bc4fc7a5b1aef46296ac30a49fa8b32 (diff)
downloadQt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.zip
Qt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.tar.gz
Qt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.tar.bz2
doc
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/fx/qfxwebview.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp
index 05730f9..fe694ea 100644
--- a/src/declarative/fx/qfxwebview.cpp
+++ b/src/declarative/fx/qfxwebview.cpp
@@ -221,7 +221,13 @@ public:
if the idealHeight is changed after the content is loaded.
\code
- <WebView url="http://www.nokia.com" smooth="true" scale="0.5" width="490" height="400"/>
+ WebView {
+ url: "http://www.nokia.com"
+ width: 490
+ height: 400
+ scale: 0.5
+ smooth: true
+ }
\endcode
\image webview.png
@@ -998,23 +1004,12 @@ QString QFxWebView::html() const
\qmlproperty string WebView::html
This property holds HTML text set directly
- The html property can be set as a string (using CDATA for large blocks),
- or as xhtml inline using the XML namespace http://www.w3.org/1999/xhtml:
+ The html property can be set as a string.
\code
- <WebView>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <p>This is valid xHTML.</p>
- </html>
- </WebView>
- \endcode
-
- \code
- <WebView>
- <html>&lt;CDATA[
- <p>This is just HTML.
- ]]&gt;html>
- </WebView>
+ WebView {
+ html: "<p>This is <b>HTML</b>."
+ }
\endcode
*/
void QFxWebView::setHtml(const QString &html, const QUrl &baseUrl)