From c2e5141af3fda37d50fd014074077139de05d2b8 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 28 Feb 2012 17:38:35 +1000 Subject: Remove incorrect line from performance docs V8 does not use a single map-transition-graph for all types, and thus the line about ordering of properties in constructor functions is incorrect. Change-Id: Iaf4ac02dcfc53dd7254af1a40a3c66852a78a320 Reviewed-by: Alan Alpert --- doc/src/qml/performance.qdoc | 1 - 1 file changed, 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/qml/performance.qdoc b/doc/src/qml/performance.qdoc index 88437a81d4..1d6b041803 100644 --- a/doc/src/qml/performance.qdoc +++ b/doc/src/qml/performance.qdoc @@ -445,7 +445,6 @@ criteria: \list \o Avoid using eval() if at all possible \o Do not delete properties of objects -\o Try to maintain property-assignment order in different constructor functions \endlist \section1 Common Interface Elements -- cgit v1.2.3 From aed15e776277410fb43ce2d2a9a8924359a58653 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Mon, 5 Mar 2012 11:54:01 +0100 Subject: Make sure QML type "real" always maps to C++ type "double" The type "real" was documented to be a single-precision float, but that's incorrect. It's always been double. However, signal parameters of type "real" would be mapped to the C++ type "qreal", which can be either float or double depending on the platform. Since JavaScript floating point numbers have double precision, QML should use the same, to avoid potential loss of precision. With this change, "real" behaves the same as the QML "double" type (which already guaranteed double precision). Even though it's redundant, "double" is kept to preserve compatibility. Added tests for the "double" type to the QML meta-object autotest, and a test for the "real" type that ensures there's no loss of precision. Change-Id: I1a77f1fd45082ff670684a935e17d1a46ea75d84 Reviewed-by: Aaron Kennedy --- doc/src/qml/basictypes.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/qml/basictypes.qdoc b/doc/src/qml/basictypes.qdoc index 0f66a96731..317dd54443 100644 --- a/doc/src/qml/basictypes.qdoc +++ b/doc/src/qml/basictypes.qdoc @@ -88,7 +88,7 @@ Item { width: 100.45; height: 150.82 } \endqml - \bold{Note:} In QML all reals are stored in single precision, \l + \bold{Note:} In QML all reals are stored in double precision, \l {http://en.wikipedia.org/wiki/IEEE_754} {IEEE floating point} format. -- cgit v1.2.3