summaryrefslogtreecommitdiffstats
path: root/tests/auto/sensors2qmlapi/qdeclaccelerometer.h
diff options
context:
space:
mode:
authorWolfgang Beck <wolfgang.beck@nokia.com>2011-10-14 11:14:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-14 03:34:01 +0200
commit6f3a14a73e5f74de8f7f365fb2736e065254930f (patch)
tree38a87388e18c183032e52b73d8f17b7929c3a8a5 /tests/auto/sensors2qmlapi/qdeclaccelerometer.h
parent3d9fa0cf5aaf51fa4fd234c3d9aa11e11a4a74d2 (diff)
MTMW-347 Replace dataRate with speed in TltSensor
Change-Id: Icdca79436d1fe0f0e7f5035ab1e27bc958a9e517 Reviewed-on: http://codereview.qt-project.org/6634 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
Diffstat (limited to 'tests/auto/sensors2qmlapi/qdeclaccelerometer.h')
-rw-r--r--tests/auto/sensors2qmlapi/qdeclaccelerometer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/sensors2qmlapi/qdeclaccelerometer.h b/tests/auto/sensors2qmlapi/qdeclaccelerometer.h
index a94bd62f..5d8da9fb 100644
--- a/tests/auto/sensors2qmlapi/qdeclaccelerometer.h
+++ b/tests/auto/sensors2qmlapi/qdeclaccelerometer.h
@@ -54,12 +54,15 @@ public:
, _active(false)
, _sensor(sensor)
{
- this->addDataRate(10, 50);
}
virtual ~QDeclAccelerometer() {}
void start() { _active = true; }
- void stop() { _active = false; }
+ void stop()
+ {
+ _sensor->stop();
+ _active = false;
+ }
bool isActive() { return _active; }
void test(float x, float y, float z)