summaryrefslogtreecommitdiffstats
path: root/examples/declarative/listview/dynamic.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-09-11 05:48:45 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-09-11 05:48:45 (GMT)
commit283ad006223cd4c178465397d25edc70362612ae (patch)
tree5afdb4a7876f2e5e99cf7a66933c27429762266a /examples/declarative/listview/dynamic.qml
parentdf478cf9577c766a0a8d0bcb7b4da6c9c0be0171 (diff)
downloadQt-283ad006223cd4c178465397d25edc70362612ae.zip
Qt-283ad006223cd4c178465397d25edc70362612ae.tar.gz
Qt-283ad006223cd4c178465397d25edc70362612ae.tar.bz2
Ensure text size changes when text is made empty, or elides to empty.
Previously, old size would persist if text changed from non-"" to "". Elide text in example (tests and demonstrates)
Diffstat (limited to 'examples/declarative/listview/dynamic.qml')
-rw-r--r--examples/declarative/listview/dynamic.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/listview/dynamic.qml b/examples/declarative/listview/dynamic.qml
index dde24f6..52c3c0b 100644
--- a/examples/declarative/listview/dynamic.qml
+++ b/examples/declarative/listview/dynamic.qml
@@ -59,8 +59,8 @@ Item {
id: FruitDelegate
Item {
width: parent.width; height: 55
- Text { id: Label; font.pixelSize: 24; text: name }
- Text { font.pixelSize: 24; text: '$'+Number(cost).toFixed(2); anchors.right: ItemButtons.left }
+ Text { id: Label; font.pixelSize: 24; text: name; elide: "ElideRight"; anchors.right: Cost.left; anchors.left:parent.left }
+ Text { id: Cost; font.pixelSize: 24; text: '$'+Number(cost).toFixed(2); anchors.right: ItemButtons.left }
Row {
anchors.top: Label.bottom
spacing: 5