Fixed a crash in QListView

The problem was that QAbstractScrollArea calls layoutChildren on resize
but the QListView requires that updateGeometries is called before.

Task: QTBUG-18558
Reviewed-By: Pierre
(cherry picked from commit 5b3872b2d7523d44ba454a76613e7a3fa45387f7)
bb10
Thierry Bastian 2011-04-11 16:52:59 +02:00 committed by Olivier Goffart
parent 82340de4c8
commit 09e2335f6d
1 changed files with 1 additions and 1 deletions

View File

@ -1582,6 +1582,7 @@ bool QAbstractItemView::event(QEvent *event)
break;
case QEvent::LayoutDirectionChange:
case QEvent::ApplicationLayoutDirectionChange:
case QEvent::Resize:
updateGeometries();
break;
case QEvent::StyleChange:
@ -2443,7 +2444,6 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event)
void QAbstractItemView::resizeEvent(QResizeEvent *event)
{
QAbstractScrollArea::resizeEvent(event);
updateGeometries();
}
/*!