Handle views with negative width/height
authorMartin Jones <martin.jones@nokia.com>
Thu, 12 Jan 2012 05:31:00 +0000 (15:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sun, 15 Jan 2012 23:04:03 +0000 (00:04 +0100)
commit80d85e0017cb5cc4b0a0df6c19d4126bf5062731
tree047aae647d7b815019623431367ad72e35f528b5
parent74c390d44f133f327fc02b9561fe43a23ff4d3b3
Handle views with negative width/height

A view with a negative d->size() would get stuck in an infinite
loop.  Also make sure item layout/visibility is updated when
the view size changes.

Change-Id: I1f16a714ecebe1c4b71902c460e27fb0f1c4406f
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickgridview.cpp
src/quick/items/qquickitemview.cpp
tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp
tests/auto/qtquick2/qquicklistview/tst_qquicklistview.cpp