diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2010-09-02 04:13:14 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-09-02 04:13:14 (GMT) |
commit | daccbc9300abbfdc0baa6d4ef44d26cb81f0d01a (patch) | |
tree | 4d61fafdbd6904f498e6035dd566b1f6a23619d2 /doc/src/snippets/code/src_xmlpatterns_api_qxmlname.cpp | |
parent | 6e8c51e99e3704c1bbb50253e02701bea6911144 (diff) | |
download | Qt-daccbc9300abbfdc0baa6d4ef44d26cb81f0d01a.zip Qt-daccbc9300abbfdc0baa6d4ef44d26cb81f0d01a.tar.gz Qt-daccbc9300abbfdc0baa6d4ef44d26cb81f0d01a.tar.bz2 |
Fix crash when all the items in a QListView are hidden
Calling QIconModeViewBase::initDynamicLayout() on the second and
successive segments would return QPoint(-1,-1), resulting in a
totally empty area rectangle for all the items while in
QIconModeViewBase::doDynamicLayout(). This rectangle is used to
initialize the BSP tree, and produces an arithmetic exception when
empty.
Furthermore, a rendering bug was also apparent when displaying the
first item of a segment while the last item of the previous segment
was hidden.
Auto-tests included.
Reviewed-by: Olivier
Task-number: QTBUG-12308
(cherry picked from commit 3c7e7992461b1fef37ada68244f1b5b891015bda)
Conflicts:
src/gui/itemviews/qlistview.cpp
tests/auto/qlistview/tst_qlistview.cpp
Diffstat (limited to 'doc/src/snippets/code/src_xmlpatterns_api_qxmlname.cpp')
0 files changed, 0 insertions, 0 deletions