From a72d15c8a7ca8b89b2160f4e48af5cf69e2a31e7 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 11 Jul 2012 09:59:57 +0200 Subject: Introduce QRotationReading::setFromEuler() in favor of set{X/Y/Z}() In preparation of adding new representations to the reading (QTBUG-25840), the setX(), setY() and setZ() setters were removed, as these don't set the representation atomically, and don't provide a single point where a conversion to matrix or quaternion can occur. These setters were only supposed to be used by the backends, and all backends are ported in this commit. Change-Id: Ib652520578d293687fc8515d226f1f61aa2f2def Reviewed-by: Lincoln Ramsay Reviewed-by: Lorn Potter --- tests/auto/qsensor/test_backends.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/auto/qsensor') diff --git a/tests/auto/qsensor/test_backends.h b/tests/auto/qsensor/test_backends.h index 21f02355..1dc9dc3a 100644 --- a/tests/auto/qsensor/test_backends.h +++ b/tests/auto/qsensor/test_backends.h @@ -123,9 +123,7 @@ PREPARE_SENSORINTERFACE(QProximitySensor, QProximityReading, QProximityFilter, { reading->setClose(true); }) PREPARE_SENSORINTERFACE(QRotationSensor, QRotationReading, QRotationFilter, { - reading->setX(1.0); - reading->setY(1.0); - reading->setZ(1.0); + reading->setFromEuler(1.0, 1.0, 1.0); }) PREPARE_SENSORINTERFACE(QTapSensor, QTapReading, QTapFilter, { reading->setTapDirection(QTapReading::Z_Both); -- cgit v1.2.3