qt5base-lts/tests/auto/corelib/tools
Mitch Curtis 09dd19df5c Do not consider sign in qIsNull.
The current implementation of qIsNull only returns true if the value is
positive zero. This behaviour is not useful for use cases like
QPointF::isNull, where QPointF(-0, -0).isNull() will return false.
There doesn't seem to be a reason why the function exhibits this
behaviour (-0.0 is not accounted for in the unit tests), and for the
case of QSizeF::scale it causes a bug: qIsNull is used to check for
division by 0.0 before it proceeds, which fails in the case of -0.0.

Task-number: QTBUG-7303
Change-Id: I767e5280bd26614e8e78ae62b274eb9bc4ade385
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2012-08-22 04:04:57 +02:00
..
qalgorithms Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qarraydata Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qbitarray Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qbytearray Fix tst_qbytearray on QNX 2012-08-15 15:19:55 +02:00
qbytearraymatcher Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qcache Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qchar Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qcontiguouscache Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qcryptographichash Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qdate Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qdatetime Disregard milliseconds in QTime::secsTo(). 2012-08-21 11:05:20 +02:00
qeasingcurve Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qelapsedtimer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qexplicitlyshareddatapointer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qfreelist Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qhash Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qline Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qlist Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qlocale Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qmap Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qmargins Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qpair Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qpoint Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qpointf Do not consider sign in qIsNull. 2012-08-22 04:04:57 +02:00
qqueue Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qrect Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qregexp Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qregularexpression Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qringbuffer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qscopedpointer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qscopedvaluerollback Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qset Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qsharedpointer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qsize Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qsizef Do not consider sign in qIsNull. 2012-08-22 04:04:57 +02:00
qstl Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstring Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstring_no_cast_from_bytearray Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstringbuilder Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstringlist Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstringmatcher Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qstringref Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtextboundaryfinder Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtime Disregard milliseconds in QTime::secsTo(). 2012-08-21 11:05:20 +02:00
qtimeline Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qvarlengtharray Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qvector Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
tools.pro Improve QPoint and QPointF auto tests. 2012-07-11 14:52:17 +02:00