diff options
author | Bea Lam <bea.lam@nokia.com> | 2011-02-08 07:55:17 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2011-02-09 02:46:30 (GMT) |
commit | b3080d78f2ff2d98410249e09d5d7d6e20fd155c (patch) | |
tree | 15731e9e434d351e17d8f7a8988d1a6f6b31cb96 /doc/src/howtos | |
parent | 27339962c023820ef9cd76843e256c7f3d624116 (diff) | |
download | Qt-b3080d78f2ff2d98410249e09d5d7d6e20fd155c.zip Qt-b3080d78f2ff2d98410249e09d5d7d6e20fd155c.tar.gz Qt-b3080d78f2ff2d98410249e09d5d7d6e20fd155c.tar.bz2 |
Call onAdd() for first items added to ListView and GridView
The bug was caused by the fact that the itemsInserted()
implementation in ListView and GridView returned early for cases
where (model->count() <= 1) and so did not call onAdd() unlike for
other cases. This change also fixes some incorrect values in the
header() and footer() unit tests for ListView and GridView.
Change-Id: I24f5c86afcd62c26e17b0932f257f4767a287b8e
Task-number: QTBUG-15642
Reviewed-by: Martin Jones
Diffstat (limited to 'doc/src/howtos')
0 files changed, 0 insertions, 0 deletions