qt5base-lts/tests/auto/corelib/itemmodels
Andre Somers abbd26f553 Add QModelIndex::siblingAtColumn and ::siblingAtRow
Data in item models is most often organized in rows, where each column
contains an attribute of the item represented by the row. Often when
sibling is used, it is to request another piece of data from the same
row. Having a specialized version makes this easier and less awkward
to do, simplifying

auto sibling = index.sibling(index.row(), columnOfInterest);

to

auto sibling = index.siblingAtColumn(columnOfInterest);

For symmetry reasons, siblingAtRow(rowOfInterest) was also added.

Change-Id: Ib203b2cdb16154cbb2680d16fb5c6a7538f33d07
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
2018-01-12 15:12:53 +00:00
..
qabstractitemmodel QAbstractItemModelTester: fix the autotests 2018-01-09 21:12:58 +00:00
qabstractproxymodel Add QModelIndex::siblingAtColumn and ::siblingAtRow 2018-01-12 15:12:53 +00:00
qidentityproxymodel QAbstractItemModelTester: fix the autotests 2018-01-09 21:12:58 +00:00
qitemmodel Add QModelIndex::siblingAtColumn and ::siblingAtRow 2018-01-12 15:12:53 +00:00
qitemselectionmodel Fix missing handling of columns when merging selection ranges 2017-05-09 13:46:51 +00:00
qsortfilterproxymodel QAbstractItemModelTester: fix the autotests 2018-01-09 21:12:58 +00:00
qsortfilterproxymodel_recursive Fix license headers 2018-01-11 11:40:36 +00:00
qstringlistmodel tst_qstringlistmodel: remove an invalid test 2017-11-24 18:23:40 +00:00
itemmodels.pro Merge remote-tracking branch 'origin/5.9' into dev 2017-03-28 09:28:31 +02:00