From 6b2c7688b3f344f350125f8b9713a6a77b82c3dd Mon Sep 17 00:00:00 2001 From: Wolfgang Beck Date: Fri, 2 Sep 2011 13:29:38 +1000 Subject: MTMW-98 QML API Version 2 Change-Id: I10c610ae22974d291fad663088c5a11449a86b05 Reviewed-on: http://codereview.qt-project.org/4107 Reviewed-by: Wolfgang Beck --- doc/src/examples/sensors.qdoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/src/examples') diff --git a/doc/src/examples/sensors.qdoc b/doc/src/examples/sensors.qdoc index 4ecc4e16..3f5a9a2a 100644 --- a/doc/src/examples/sensors.qdoc +++ b/doc/src/examples/sensors.qdoc @@ -79,13 +79,13 @@ light sensor. In the start method, the backend should be sure to call the sensorStopped() or sensorBusy() methods if it cannot start. - \snippet ../../examples/sensors/grueplugin/gruesensorimpl.cpp start + \snippet ../examples/sensors/grueplugin/gruesensorimpl.cpp start The setReading method is needed so that the sensors library knows where the readings are coming from. This backend has a local copy of the reading so it passes a pointer to the function. - \snippet ../../examples/sensors/grueplugin/gruesensorimpl.cpp setReading + \snippet ../examples/sensors/grueplugin/gruesensorimpl.cpp setReading However it is also possible to pass null to the setReading method in which case the sensors library will create an instance and return a pointer. @@ -142,15 +142,15 @@ The accelerometer is created and the filter is added. - \snippet ../../examples/sensors/cubehouse/view.cpp accelerometer + \snippet ../examples/sensors/cubehouse/view.cpp accelerometer When new values are available, the view is recalculated. - \snippet ../../examples/sensors/cubehouse/view.cpp accelerometer2 + \snippet ../examples/sensors/cubehouse/view.cpp accelerometer2 The filter is defined like this. - \snippet ../../examples/sensors/cubehouse/view.cpp smoothed + \snippet ../examples/sensors/cubehouse/view.cpp smoothed */ -- cgit v1.2.3