qt5base-lts/tests/auto/corelib
Friedemann Kleint 56d62345ad Fix less-than comparison for QStandardItem and QSortFilterProxyModel with invalid data.
Previously, QStandardItem::operator<() returned true when both
items had invalid data. With MSVC in debug mode (checked
iterators/STL), this triggered an assert in
tst_QStandardItem::sortChildren() since that verifies
that !(b < a) when a < b:

Debug Assertion Failed!
Line: 3006
Expression: invalid operator<

Introduce a stable sort order for invalid items such that
other items are always less than invalid items and comparing
invalid items returns false (indicating equivalence).

Change-Id: Ica0f0d9f001c86973b1941dbcc1faf282e4c47df
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2015-06-11 13:29:23 +00:00
..
animation Update copyright headers 2015-02-11 06:49:51 +00:00
codecs fix usage of wince scope 2015-06-05 10:29:10 +00:00
global Add CONFIG += testcase to test qglobalstatic. 2015-05-22 04:37:52 +00:00
io Fix leaking of link in tst_QFileInfo::canonicalFilePath(). 2015-06-10 10:06:17 +00:00
itemmodels Fix less-than comparison for QStandardItem and QSortFilterProxyModel with invalid data. 2015-06-11 13:29:23 +00:00
json Make sure remove() doesn't corrupt the json object 2015-03-18 07:34:59 +00:00
kernel fix usage of wince scope 2015-06-05 10:29:10 +00:00
mimetypes Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
plugin fix usage of wince scope 2015-06-05 10:29:10 +00:00
statemachine QStateMachine: empty the whole internal queue before external queue 2015-05-19 08:03:46 +00:00
thread Do not search test binary if QProcess is not supported. 2015-03-23 08:38:58 +00:00
tools fix usage of wince scope 2015-06-05 10:29:10 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00