summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlbind.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-01 01:21:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-01 01:21:44 (GMT)
commit1206e9fb0c9a21e60b1e6841bb3071daa1f0da8a (patch)
tree019e5bf36d8f97c487edac68381b6dcaaf3d6129 /src/declarative/util/qmlbind.cpp
parent09be36905f81923e665743520b93a24af0ec784d (diff)
downloadQt-1206e9fb0c9a21e60b1e6841bb3071daa1f0da8a.zip
Qt-1206e9fb0c9a21e60b1e6841bb3071daa1f0da8a.tar.gz
Qt-1206e9fb0c9a21e60b1e6841bb3071daa1f0da8a.tar.bz2
More format conversion.
Diffstat (limited to 'src/declarative/util/qmlbind.cpp')
-rw-r--r--src/declarative/util/qmlbind.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmlbind.cpp b/src/declarative/util/qmlbind.cpp
index 3b51c6a..59bfd75 100644
--- a/src/declarative/util/qmlbind.cpp
+++ b/src/declarative/util/qmlbind.cpp
@@ -77,8 +77,8 @@ QML_DEFINE_TYPE(QmlBind,Bind);
property into QML. You could use Bind to update the enteredText property
like this.
\code
- <TextEdit id="myTextField" text="Please type here..." />
- <Bind target="{app}" property="enteredText" value="{myTextField.text}" />
+ TextEdit { id: myTextField; text: "Please type here..." }
+ Bind { target: app; property: "enteredText"; value: myTextField.text />
\endcode
Whenever the text in the TextEdit is updated, the C++ property will be
updated also.