diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-06-12 20:49:06 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-11-14 20:47:45 +0200 |
commit | c15a069830baf87f57c84e86326cf86ba9a39713 (patch) | |
tree | 3eb2afa9c6f22bb35ba647f17bb82dd5485fe5af /src/widgets/itemviews/itemviews.pri | |
parent | 80ac9e8b7ce8e3f79af0b00610a0a4b0ff17abe4 (diff) |
QTreeView: make sure to not ask the old model during setModel
Within QTreeView::setModel() the header might emit columnCountChanged
which then tries to update the geometries based on the old model which
is wrong.
Fix it by setting geometryRecursionBlock to true so
QTreeView::updateGeometries() will not ask the old model for it's data.
Fixes: QTBUG-75982
Change-Id: Ia0dd36cd7c6c5347fbc285deac43da6941accbe7
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/itemviews/itemviews.pri')
0 files changed, 0 insertions, 0 deletions