summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets.pro
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-09-18 00:41:20 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-11-30 13:01:45 +0000
commitbdcbbd7d5ba41ef3aeb24c12ef22ad2fdb7aac90 (patch)
tree905b7aab20ecf96617c1365f976aae52616b2c8d /src/widgets/widgets.pro
parentc35342ffeba10deecb2d8c0ce30a3a1a4ec1ee8d (diff)
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>
Diffstat (limited to 'src/widgets/widgets.pro')
0 files changed, 0 insertions, 0 deletions