diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-10-02 07:40:23 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-10-02 07:59:24 (GMT) |
commit | 686330063c26fc6ebe65c7374811c94e9680c2c0 (patch) | |
tree | 58d827fcee252066a69e69a514c052f7c68adda7 /dist/changes-4.6.0 | |
parent | efb8e5a070094a064bdeb8bcd8faf87bfd844093 (diff) | |
download | Qt-686330063c26fc6ebe65c7374811c94e9680c2c0.zip Qt-686330063c26fc6ebe65c7374811c94e9680c2c0.tar.gz Qt-686330063c26fc6ebe65c7374811c94e9680c2c0.tar.bz2 |
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
Diffstat (limited to 'dist/changes-4.6.0')
-rw-r--r-- | dist/changes-4.6.0 | 8 |
1 files changed, 8 insertions, 0 deletions
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 |