diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-08 03:04:13 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-08 03:04:13 (GMT) |
commit | 71f9283df3caabadcfb04e2ab6f57305cd73c0d1 (patch) | |
tree | 99489117c607f5c7039d3dd8fb4d647121d23eab /examples/declarative/listview | |
parent | e005c3048ee69be668a6b4903ce281500543d454 (diff) | |
download | Qt-71f9283df3caabadcfb04e2ab6f57305cd73c0d1.zip Qt-71f9283df3caabadcfb04e2ab6f57305cd73c0d1.tar.gz Qt-71f9283df3caabadcfb04e2ab6f57305cd73c0d1.tar.bz2 |
Replace Text::wrap property with Text::wrapMode enumeration.
wrap remains for a little while, and will produce a warning.
Diffstat (limited to 'examples/declarative/listview')
-rw-r--r-- | examples/declarative/listview/recipes.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml index b76a9ab..59f4e59 100644 --- a/examples/declarative/listview/recipes.qml +++ b/examples/declarative/listview/recipes.qml @@ -60,7 +60,9 @@ Rectangle { opacity: wrapper.detailsOpacity } Text { - text: ingredients; wrap: true; width: parent.width + text: ingredients + wrapMode: Text.WordWrap + width: parent.width opacity: wrapper.detailsOpacity } } @@ -82,7 +84,7 @@ Rectangle { id: flick anchors.top: methodTitle.bottom; anchors.bottom: parent.bottom width: parent.width; contentHeight: methodText.height; clip: true - Text { id: methodText; text: method; wrap: true; width: details.width } + Text { id: methodText; text: method; wrapMode: Text.WordWrap; width: details.width } } Image { anchors.right: flick.right; anchors.top: flick.top |