diff options
author | Liang Qi <liang.qi@qt.io> | 2018-01-11 12:45:59 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-11 12:45:59 +0100 |
commit | 5ba29e1672dafe16be004409661aef3a7ebf499a (patch) | |
tree | 245105a3445adc98d53b4de58ed7ce1338539ae2 /src/widgets | |
parent | 1df2906c75f379a62bce487d3d2db3ade3095b16 (diff) | |
parent | 0c5953fd4edbb8e6495aaf288186dbd6737fb8c0 (diff) |
Merge remote-tracking branch 'origin/5.9.4' into 5.9
Change-Id: Ic23e90146470d69060313628562f76a710696bab
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/itemviews/qtreeview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp index 73083773f5..4795d9f1b1 100644 --- a/src/widgets/itemviews/qtreeview.cpp +++ b/src/widgets/itemviews/qtreeview.cpp @@ -237,6 +237,9 @@ void QTreeView::setModel(QAbstractItemModel *model) // QAbstractItemView connects to a private slot disconnect(d->model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(_q_rowsRemoved(QModelIndex,int,int))); + // do header layout after the tree + disconnect(d->model, SIGNAL(layoutChanged()), + d->header, SLOT(_q_layoutChanged())); // QTreeView has a public slot for this connect(d->model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(rowsRemoved(QModelIndex,int,int))); |