diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-04-23 05:11:12 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-04-23 05:11:12 (GMT) |
commit | 83357d1585f40b79c4260cf7fa84c1680e2c5e57 (patch) | |
tree | e3c2ad56708fa055cfd66f45c582863113b96531 /src/declarative/util/qmlbind.cpp | |
parent | eab843bce73e3023623bf849a35edda4deee97c4 (diff) | |
download | Qt-83357d1585f40b79c4260cf7fa84c1680e2c5e57.zip Qt-83357d1585f40b79c4260cf7fa84c1680e2c5e57.tar.gz Qt-83357d1585f40b79c4260cf7fa84c1680e2c5e57.tar.bz2 |
Small doc fix - use a real element in the example.
Diffstat (limited to 'src/declarative/util/qmlbind.cpp')
-rw-r--r-- | src/declarative/util/qmlbind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmlbind.cpp b/src/declarative/util/qmlbind.cpp index 1becc34..4451ca2 100644 --- a/src/declarative/util/qmlbind.cpp +++ b/src/declarative/util/qmlbind.cpp @@ -77,10 +77,10 @@ QML_DEFINE_TYPE(QmlBind,Bind); property into QML. You could use Bind to update the enteredText property like this. \code - <LineEdit id="myTextField" text="Please type here..." /> + <TextEdit id="myTextField" text="Please type here..." /> <Bind target="{app}" property="enteredText" value="{myTextField.text}" /> \endcode - Whenever the text in the LineEdit is updated, the C++ property will be + Whenever the text in the TextEdit is updated, the C++ property will be updated also. If the bind target or bind property is changed, the bound value is |