qt5base-lts/tests/auto/corelib/global
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
..
q_func_info Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qflags Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgetputenv QtGlobal: (new) qEnvironmentVariableIs{Set,Empty}() 2012-08-09 21:27:09 +02:00
qglobal Do not consider sign in qIsNull. 2012-08-22 04:04:57 +02:00
qlogging Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnumeric Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qrand Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qtendian Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
global.pro Enable endianness conversions on q(u)int8 2012-03-25 13:12:24 +02:00