diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-21 14:22:34 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-11 23:05:35 +0200 |
commit | 294e65f8092dd5b624740ee39d52979c7ca6f387 (patch) | |
tree | aad711d5fcf79570d018af4baa7ebe4aa366112c /tests/auto/corelib/global | |
parent | 8e7cb47a3463c4d0f3662d901f7718e7c6cacefe (diff) |
QVariant::compare shouldn't return match when QVariant::cmp does not
If the types doesn't match in QVariant::compare we do a comparison based
on QString, this may end up indicating a full match, though the we don't
match according to cmp. In this case it would be better if we preserved
the non-matching to avoid breaking ordering.
[ChangeLog][QtCore][QVariant] Fixed ordered comparison between QVariants
that do not match but produce identical toString output.
Task-number: QTBUG-40363
Change-Id: I84a8eca11e8875dba9948bde2906ae7c5aa35704
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'tests/auto/corelib/global')
0 files changed, 0 insertions, 0 deletions