diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:47:41 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:47:41 (GMT) |
commit | 26a6905e8feed42c0886b9ceef96456f2375deee (patch) | |
tree | 56aa6df98fc94e75de88a0b2bab3b1bc4d365ffd /examples/declarative/webview/inline-html.qml | |
parent | 4e01e6107c4228912fba90ba682a7c0620d92dcb (diff) | |
download | Qt-26a6905e8feed42c0886b9ceef96456f2375deee.zip Qt-26a6905e8feed42c0886b9ceef96456f2375deee.tar.gz Qt-26a6905e8feed42c0886b9ceef96456f2375deee.tar.bz2 |
Change syntax
Diffstat (limited to 'examples/declarative/webview/inline-html.qml')
-rw-r--r-- | examples/declarative/webview/inline-html.qml | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/examples/declarative/webview/inline-html.qml b/examples/declarative/webview/inline-html.qml index 701db41..5f6d410 100644 --- a/examples/declarative/webview/inline-html.qml +++ b/examples/declarative/webview/inline-html.qml @@ -1,13 +1,12 @@ -<!-- Inline HTML with loose formatting can be - set on the html property by using CDATA. --> -<WebView> - <html><![CDATA[ - <body bgcolor="white"> - <table border=1> - <tr><th><th>One<th>Two<th>Three - <tr><th>1<td>X<td>1<td>X - <tr><th>2<td>0<td>X<td>0 - <tr><th>3<td>X<td>1<td>X - </table> - ]]></html> -</WebView> +// Inline HTML with loose formatting can be +// set on the html property. +WebView { + html:"\ + <body bgcolor=white>\ + <table border=1>\ + <tr><th><th>One<th>Two<th>Three\ + <tr><th>1<td>X<td>1<td>X\ + <tr><th>2<td>0<td>X<td>0\ + <tr><th>3<td>X<td>1<td>X\ + </table>" +} |