summaryrefslogtreecommitdiffstats
path: root/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp')
-rw-r--r--tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
index 6c1e085b..2e438fd5 100644
--- a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
+++ b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
@@ -404,8 +404,8 @@ void tst_Sensors2QMLAPI::testTiltUnit()
_tilt->setProperty("accuracy", 0.0);
_tilt->setProperty("unit", QVariant(QSensor2Tilt::Radians));
accel->test(-3.59904, 5.52114, 7.07059);
- float xRotation = _tilt->property("xRotation").toFloat();
- float yRotation = _tilt->property("yRotation").toFloat();
+ qreal xRotation = _tilt->property("xRotation").toReal();
+ qreal yRotation = _tilt->property("yRotation").toReal();
xRotation += 0.159136;
yRotation -= 0.43440;
QVERIFY(xRotation < 0.0001);
@@ -414,8 +414,8 @@ void tst_Sensors2QMLAPI::testTiltUnit()
_tilt->setProperty("unit", QVariant(QSensor2Tilt::Degrees));
accel->test(-3.59904, 5.52114, 7.07059);
- xRotation = _tilt->property("xRotation").toFloat();
- yRotation = _tilt->property("yRotation").toFloat();
+ xRotation = _tilt->property("xRotation").toReal();
+ yRotation = _tilt->property("yRotation").toReal();
xRotation += 9.11778;
yRotation -= 24.8898;
QVERIFY(xRotation < 0.0001);