qt5base-lts/tests/auto/corelib/itemmodels
Filippo Cucchetto be0a221ae4 Fix missing handling of columns when merging selection ranges
This commit fixes two bugs:
1) Two ranges should not be merged if they are of different columns.
The old code would have merged (0,0) with (1, 1). Tranforming a selection
of just two indexes in a rectangle of four indexes.
2) The QItemSelectionRange appended had wrong column and worked only for
indexes of the first column. For example if 'tl' was (0, 1) than br was (0, 1)
so the QItemSelectionRange would have be ((0,1), (0, 1-1)) so ((0,1), (0,0)).
This QItemSelectionRange is invalid because topLeft columns is greater than
bottomRight column. The fix take in consideration the bottomRight column.

Task-number: QTBUG-58871
Change-Id: I591ef0bcc63926f24a7b1ced002af9b7737a4b6e
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2017-05-09 13:46:51 +00:00
..
qabstractitemmodel Updated license headers 2016-01-21 18:55:18 +00:00
qabstractproxymodel Updated license headers 2016-01-21 18:55:18 +00:00
qidentityproxymodel QIPM: Persist model indexes after emitting layoutChange, not before 2016-12-21 01:37:50 +00:00
qitemmodel QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
qitemselectionmodel Fix missing handling of columns when merging selection ranges 2017-05-09 13:46:51 +00:00
qsortfilterproxymodel Mark some methods in test code as overrides 2017-03-22 14:29:58 +00:00
qstringlistmodel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
itemmodels.pro Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00