diff options
author | Florian Hänel <florian.haenel@basyskom.com> | 2012-03-13 08:43:49 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-25 00:04:43 (GMT) |
commit | 2bc8b25c3e34d8accc53f89e19f6294ccfec620f (patch) | |
tree | e03fd40bc02f88ddf61308abe41cc51adfdf53fd /tests | |
parent | 40d8205ef4a8b03b0b66432775b6ba8b62acb91f (diff) | |
download | Qt-2bc8b25c3e34d8accc53f89e19f6294ccfec620f.zip Qt-2bc8b25c3e34d8accc53f89e19f6294ccfec620f.tar.gz Qt-2bc8b25c3e34d8accc53f89e19f6294ccfec620f.tar.bz2 |
Fix roundtrip between double and string in QDeclarativeListModel leading to precision issues
Change-Id: Ib667dc79072e900f200943f05fb3db9512f4282e
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp index 3c41002..b6f80e8 100644 --- a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp +++ b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp @@ -559,6 +559,10 @@ void tst_qdeclarativelistmodel::static_types_data() QTest::newRow("enum") << "ListElement { foo: Text.AlignHCenter }" << QVariant(double(QDeclarativeText::AlignHCenter)); + + QTest::newRow("real11") + << "ListElement { foo: 11 }" + << QVariant(11.0); } void tst_qdeclarativelistmodel::static_types() |