summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/itemviews/qtreeview
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-01-20 22:34:43 +0100
committerLiang Qi <liang.qi@qt.io>2018-01-20 22:36:19 +0100
commit65a97fccc67ae7f3df1900e1419955f939a49b9f (patch)
treea8fd0e119b585123e77e3b2574f2d82a5474eb28 /tests/auto/widgets/itemviews/qtreeview
parent5e8bc07cb2ded1f5f74435411de666f419869514 (diff)
parent1303327a713d8f88fd9782e4f887b646d4210f68 (diff)
Merge remote-tracking branch 'origin/5.10' into dev
Conflicts: tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp Change-Id: If089d5010d15c33b3c1f13912d4386207456c1a9
Diffstat (limited to 'tests/auto/widgets/itemviews/qtreeview')
-rw-r--r--tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp b/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp
index 0eec2e7c75..5293ba487a 100644
--- a/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp
+++ b/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp
@@ -339,17 +339,6 @@ public:
endRemoveColumns();
}
- void removeAddLastColumnLayoutChanged() // for taskQTBUG_41124
- {
- // make sure QHeaderView::_q_layoutChanged() is called
- emit layoutAboutToBeChanged();
- --cols;
- emit layoutChanged();
- emit layoutAboutToBeChanged();
- ++cols;
- emit layoutChanged();
- }
-
void removeAllColumns()
{
beginRemoveColumns(QModelIndex(), 0, cols - 1);
@@ -1355,18 +1344,6 @@ void tst_QTreeView::columnHidden()
QCOMPARE(view.isColumnHidden(model.cols - 1), true);
model.simulateMoveRows();
QCOMPARE(view.isColumnHidden(model.cols - 1), true);
-
- // QTBUG_41124:
- // QHeaderViewPrivate::_q_layoutChanged was not called because it was
- // disconnected in QTreeView::setModel(). _q_layoutChanged restores
- // the hidden sections which is tested here
- view.setColumnHidden(model.cols - 1, true);
- model.removeAddLastColumnLayoutChanged();
- // we removed the last column and added a new one
- // (with layoutToBeChanged/layoutChanged() for both) so column
- // 1 is a new column and therefore must not be hidden when
- // _q_layoutChanged() is called and is doing the right stuff
- QCOMPARE(view.isColumnHidden(model.cols - 1), false);
}
void tst_QTreeView::rowHidden()