Make cellWidth/cellHeight reals rather than ints.
authorMichael Brasser <michael.brasser@nokia.com>
Mon, 19 Sep 2011 03:50:03 +0000 (13:50 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 04:24:47 +0000 (06:24 +0200)
commit1aa075b6319ded90d79dfe28605294283502bead
tree59751e7937657d1544a9a2db1ff71f432195db1e
parentb0539f0ed9e848afd6df2cb4d01eb5af70168df8
Make cellWidth/cellHeight reals rather than ints.

When they were ints, it was relatively easy to end up with a different
row or column count than expected, because of rounding.

Change-Id: Ifc5eba2b5598cbc0220df25f91f031581c3b51a5
Reviewed-on: http://codereview.qt-project.org/5112
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/items/qsggridview.cpp
src/declarative/items/qsggridview_p.h
tests/auto/declarative/qsggridview/data/gridview4.qml [new file with mode: 0644]
tests/auto/declarative/qsggridview/tst_qsggridview.cpp