diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2011-04-11 14:52:59 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2011-04-11 14:52:59 (GMT) |
commit | 5b3872b2d7523d44ba454a76613e7a3fa45387f7 (patch) | |
tree | b0c1ab8f4a850bc525c596dedd33879e1853a1ec /src/gui | |
parent | 245e0454a82a0fba7a1605320acf6b231c8d4205 (diff) | |
download | Qt-5b3872b2d7523d44ba454a76613e7a3fa45387f7.zip Qt-5b3872b2d7523d44ba454a76613e7a3fa45387f7.tar.gz Qt-5b3872b2d7523d44ba454a76613e7a3fa45387f7.tar.bz2 |
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
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index 081a6d9..5142107 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -1542,6 +1542,7 @@ bool QAbstractItemView::event(QEvent *event) break; case QEvent::LayoutDirectionChange: case QEvent::ApplicationLayoutDirectionChange: + case QEvent::Resize: updateGeometries(); break; case QEvent::StyleChange: @@ -2396,7 +2397,6 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event) void QAbstractItemView::resizeEvent(QResizeEvent *event) { QAbstractScrollArea::resizeEvent(event); - updateGeometries(); } /*! |