Fix min extents to correctly consider header size
authorBea Lam <bea.lam@nokia.com>
Mon, 5 Sep 2011 00:59:28 +0000 (10:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Sep 2011 03:55:48 +0000 (05:55 +0200)
commit8282beb53de059237a4240ad9615d77f676c20fb
tree1fc6e6f7cb42da276bccb5e96be3657cdbc8c57b
parent0fdd97f613af6ae255e9cd1470ad8d4d67091dd7
Fix min extents to correctly consider header size

Regression from c0fc795f which changed implementation to always position
header at a negative position, and not just when visibleItems is empty.

Task-number: QTBUG-21207

Change-Id: I9a888e7e30b00f70835734b1e0e75e57ed282602
Reviewed-on: http://codereview.qt.nokia.com/4159
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsgitemview.cpp
tests/auto/declarative/qsggridview/data/header.qml
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsglistview/data/header.qml
tests/auto/declarative/qsglistview/tst_qsglistview.cpp