summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/qtbinding/resources/main.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-11-04 05:18:52 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-11-04 05:19:51 (GMT)
commitb5588ded342ed9dbc9f00fc8a4091e447880eccc (patch)
treeec80f35e2eb242fa2896aa7af2fdef127293bd35 /doc/src/snippets/declarative/qtbinding/resources/main.qml
parentb628a6dc1373fcfbc71a7668d39111c699396674 (diff)
downloadQt-b5588ded342ed9dbc9f00fc8a4091e447880eccc.zip
Qt-b5588ded342ed9dbc9f00fc8a4091e447880eccc.tar.gz
Qt-b5588ded342ed9dbc9f00fc8a4091e447880eccc.tar.bz2
Largely rewrite the Using QML in C++ Applications documentation. It
now has an overview of different approaches to QML/C++ integration and demonstrates how to pass data between QML and C++ through properties/functions/signals. The part in the old docs that focused on QDeclarativeContext has been merged into the QDeclarativeContext class docs (although most of the info was largely covered in there already) and the part that covered Network Components has been moved to the QDeclarativeComponent class docs. The custom enum types example previously in extending-tutorial.qdoc has been moved to these new docs. Task-number: QTBUG-14923
Diffstat (limited to 'doc/src/snippets/declarative/qtbinding/resources/main.qml')
-rw-r--r--doc/src/snippets/declarative/qtbinding/resources/main.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/qtbinding/resources/main.qml b/doc/src/snippets/declarative/qtbinding/resources/main.qml
index 644d963..43029cf 100644
--- a/doc/src/snippets/declarative/qtbinding/resources/main.qml
+++ b/doc/src/snippets/declarative/qtbinding/resources/main.qml
@@ -39,9 +39,8 @@
****************************************************************************/
//![0]
+// main.qml
import QtQuick 1.0
-Image {
- source: "images/background.png"
-}
+Image { source: "images/background.png" }
//![0]