From 686330063c26fc6ebe65c7374811c94e9680c2c0 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 2 Oct 2009 09:40:23 +0200 Subject: Add comment to changes file about behavioral change in QDataStream Refers to change 5170432e7cb2d0d1adf7ac2ec1ece627c75470f3 where QDataStream was altered to stream all floating point numbers with the same precision. Reviewed-by: Samuel --- dist/changes-4.6.0 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dist/changes-4.6.0 b/dist/changes-4.6.0 index f9984d3..2e7e699 100644 --- a/dist/changes-4.6.0 +++ b/dist/changes-4.6.0 @@ -126,3 +126,11 @@ information about a particular change. means that code that assigned a float to a variant would create a variant with userType QMetaType::Float, instead of QVariant::Double. + - QDataStream will now read and write all floating point numbers with the + same precision, regardless of whether it's streamed into or out from a + float or double. This is to maintain compatibility across platforms with + a different default precision for qreal. The default is 64-bit precision + for all floating point numbers, and this can be changed using the new + function setFloatingPointPrecision(). Set Qt_4_5 as the version of the + QDataStream to get the behavior of previous versions. + \ No newline at end of file -- cgit v0.12