qt5base-lts/tests/auto/corelib
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
..
animation Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
codecs Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
global Do not consider sign in qIsNull. 2012-08-22 04:04:57 +02:00
io Fix decoding of QByteArray in the deprecated "encoded" setters in QUrl 2012-08-20 21:59:32 +02:00
itemmodels Emit layoutChange signals when changing QPersistentModelIndexes. 2012-08-18 08:34:53 +02:00
json Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
kernel Remove QWidgetStar. 2012-08-18 10:55:47 +02:00
mimetypes Remove more -Werror from any test other than headersclean. 2012-08-07 23:27:17 +02:00
plugin Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
statemachine statemachine: Really fix signal transition handling in multi-threaded setup 2012-08-08 14:13:53 +02:00
thread Enable QAtomicInteger for char16_t and char32_t 2012-08-18 18:35:50 +02:00
tools Do not consider sign in qIsNull. 2012-08-22 04:04:57 +02:00
xml Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00