diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-05-10 15:15:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-14 03:03:36 +0200 |
commit | 73a5e30f44aa2cbb9a181bd9d47ffa9d942f0cfb (patch) | |
tree | 888b20797c52c4adc59f248d34ecee3fb81afa1c /tests/auto/quick/qquickgridview/data | |
parent | bd5e23a00e97603c1cc73328c508a044f1528802 (diff) |
Fix xOrigin and yOrigin to always be top-left pos
Currently xOrigin is reversed for right-to-left and yOrigin is reversed
for bottom-to-top. This is wrong since xOrigin and yOrigin come from
Flickable so they should keep that meaning, i.e. the top left corner of
where the content begins, in ListView and GridView.
Change-Id: I88c77fadd1cf784f4b4d62677168b84675e921b0
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickgridview/data')
-rw-r--r-- | tests/auto/quick/qquickgridview/data/headerfooter.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickgridview/data/headerfooter.qml b/tests/auto/quick/qquickgridview/data/headerfooter.qml index f0f73a0dac..a1f31ea224 100644 --- a/tests/auto/quick/qquickgridview/data/headerfooter.qml +++ b/tests/auto/quick/qquickgridview/data/headerfooter.qml @@ -22,7 +22,11 @@ GridView { } cellWidth: 80; - cellHeight: 80; + cellHeight: 60; - delegate: Text { width: 80; height: 80; text: index + "(" + x + ")" } + delegate: Rectangle { + width: 80; height: 60 + border.width: 1 + Text { text: index + "(" + parent.x + "," + parent.y + ")" } + } } |