diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-21 13:27:46 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-23 07:46:35 +0000 |
commit | a9276971aa8018837b23a847b5dee3b63b39232e (patch) | |
tree | 3b61379600a2ea165713fd6663fa3c8efa37083e /tests/auto/qml/qqmlproperty/data | |
parent | d0025a064cc36b4076a33fbda2c6b48afecfd13b (diff) |
Use V4 double-to-string conversion instead of QVariant's
V4's version makes an effort to find the shortest possible
representation, which QVariant doesn't do.
Task-number: QTBUG-47070
Change-Id: I49ce130020496592325074e0db29a6984ee7649a
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data')
-rw-r--r-- | tests/auto/qml/qqmlproperty/data/floatToStringPrecision.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/floatToStringPrecision.qml b/tests/auto/qml/qqmlproperty/data/floatToStringPrecision.qml new file mode 100644 index 0000000000..a0429e0cc8 --- /dev/null +++ b/tests/auto/qml/qqmlproperty/data/floatToStringPrecision.qml @@ -0,0 +1,10 @@ +import QtQuick 2.0 + +QtObject { + property double a: 3.4 + property string b: a + + property double c: 0.035003945 + property string d: c +} + |