aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 41fb80d8ed..f058b97605 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -905,7 +905,7 @@ void tst_qqmllanguage::assignLiteralToVar()
QCOMPARE(object->property("test9"), QVariant(QString(QLatin1String("#FF008800"))));
QCOMPARE(object->property("test10"), QVariant(bool(true)));
QCOMPARE(object->property("test11"), QVariant(bool(false)));
- QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2, 0.3, 0.4, 0.5)));
+ QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2f, 0.3f, 0.4f, 0.5f)));
QCOMPARE(object->property("test13"), QVariant(QRectF(10, 10, 10, 10)));
QCOMPARE(object->property("test14"), QVariant(QPointF(10, 10)));
QCOMPARE(object->property("test15"), QVariant(QSizeF(10, 10)));
@@ -1060,7 +1060,7 @@ void tst_qqmllanguage::bindJSValueToVar()
QCOMPARE(object->property("test9"), QVariant(QString(QLatin1String("#FF008800"))));
QCOMPARE(object->property("test10"), QVariant(bool(true)));
QCOMPARE(object->property("test11"), QVariant(bool(false)));
- QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2, 0.3, 0.4, 0.5)));
+ QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2f, 0.3f, 0.4f, 0.5f)));
QCOMPARE(object->property("test13"), QVariant(QRectF(10, 10, 10, 10)));
QCOMPARE(object->property("test14"), QVariant(QPointF(10, 10)));
QCOMPARE(object->property("test15"), QVariant(QSizeF(10, 10)));
@@ -1109,7 +1109,7 @@ void tst_qqmllanguage::bindJSValueToVariant()
QCOMPARE(object->property("test9"), QVariant(QString(QLatin1String("#FF008800"))));
QCOMPARE(object->property("test10"), QVariant(bool(true)));
QCOMPARE(object->property("test11"), QVariant(bool(false)));
- QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2, 0.3, 0.4, 0.5)));
+ QCOMPARE(object->property("test12"), QVariant(QColor::fromRgbF(0.2f, 0.3f, 0.4f, 0.5f)));
QCOMPARE(object->property("test13"), QVariant(QRectF(10, 10, 10, 10)));
QCOMPARE(object->property("test14"), QVariant(QPointF(10, 10)));
QCOMPARE(object->property("test15"), QVariant(QSizeF(10, 10)));
@@ -1133,7 +1133,7 @@ void tst_qqmllanguage::bindJSValueToType()
QCOMPARE(object->doubleProperty(), double(1.7));
QCOMPARE(object->stringProperty(), QString(QLatin1String("Hello world!")));
QCOMPARE(object->boolProperty(), true);
- QCOMPARE(object->colorProperty(), QColor::fromRgbF(0.2, 0.3, 0.4, 0.5));
+ QCOMPARE(object->colorProperty(), QColor::fromRgbF(0.2f, 0.3f, 0.4f, 0.5f));
QCOMPARE(object->rectFProperty(), QRectF(10, 10, 10, 10));
QCOMPARE(object->pointFProperty(), QPointF(10, 10));
QCOMPARE(object->sizeFProperty(), QSizeF(10, 10));