qt5base-lts/tests/auto/widgets/itemviews
Giuseppe D'Angelo bdcbbd7d5b QTreeWidgetItem::insertChildren: ignore out of bounds indexes
QTreeWidgetItem::insertChildren should behave like a more-optimized
QTreeWidgetItem::insertChild. Unlike the latter, the former lacks
out-of-bounds checks, resulting in successful insertions even
when using an invalid index (say, bigger than the row/column count).
Reintroduce some sanity checks instead. This allows to fix a "fixme"
left in the autotest.

[ChangeLog][QtWidgets][QTreeWidgetItem] QTreeWidgetItem::insertChildren
now ignores insertions happening at invalid indices, for
consistency with QTreeWidgetItem::insertChild.

Change-Id: I1532597768cc6aff96a6e8f356bc6075b582801d
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2017-11-30 13:01:45 +00:00
..
qabstractitemview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qcolumnview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
qitemdelegate Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qlistview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qlistwidget Fix tst_QListWidget::QTBUG50891_ensureSelectionModelSignalConnectionsAreSet 2017-07-21 22:10:28 +00:00
qtableview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
qtreewidget QTreeWidgetItem::insertChildren: ignore out of bounds indexes 2017-11-30 13:01:45 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00