qt5base-lts/tests/auto/corelib
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
..
animation Use a custom QAnimationDriver to take control over time 2017-12-02 19:58:30 +00:00
codecs Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
global Tests: Raise minimum supported MSVC version to 2015 2018-01-04 20:23:25 +00:00
io Merge remote-tracking branch 'origin/5.10' into dev 2018-01-04 19:49:26 +01:00
itemmodels Add QModelIndex::siblingAtColumn and ::siblingAtRow 2018-01-12 15:12:53 +00:00
json Improve symmetry of variant json conversions 2017-07-25 09:00:46 +00:00
kernel Tests: Raise minimum supported MSVC version to 2015 2018-01-04 20:23:25 +00:00
mimetypes QMimeDatabase: only export var for unittests if QT_BUILD_INTERNAL 2018-01-02 09:31:37 +00:00
plugin Remove spurious execute permissions 2017-12-08 13:27:42 +00:00
statemachine Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
thread Tests: Raise minimum supported MSVC version to 2015 2018-01-04 20:23:25 +00:00
tools Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
xml QXmlStreamWriter: Avoid writing invalid characters 2017-09-13 07:29:00 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00