diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-03-02 14:13:39 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-03 09:22:38 +0200 |
commit | 4c61854d60fb5d2c68c6dcb1fb5bdf5c0dead3e2 (patch) | |
tree | b41d70a37b8a1ff76c32025d8562a94581a3bd22 /src/imports/sensors/plugins.qmltypes | |
parent | fb68fb8c052ae08fabed8f49256e79b0d0915fb0 (diff) |
Add TiltSensor to QtMobility.sensors 1.3
This has been adapted from the TiltSensor type in QtSensors 5.0
import but the code there has been split into multiple pieces.
There's a C++ class, a generic backend
and a QML interface.
Change-Id: Ic09465a5f76250a02a13938abe4789958137376f
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/imports/sensors/plugins.qmltypes')
-rw-r--r-- | src/imports/sensors/plugins.qmltypes | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/imports/sensors/plugins.qmltypes b/src/imports/sensors/plugins.qmltypes index 49c2e748..eecc3a93 100644 --- a/src/imports/sensors/plugins.qmltypes +++ b/src/imports/sensors/plugins.qmltypes @@ -495,5 +495,21 @@ Module { Signal { name: "tapDirectionChanged"; type: "void" } Signal { name: "isDoubleTapChanged"; type: "void" } } + Component { + name: "QmlTiltSensor" + prototype: "QmlSensor" + exports: ["TiltSensor 1.3"] + } + Method { name: "calibrate"; type: "void" } + } + Component { + name: "QmlTiltSensorReading" + prototype: "QmlSensorReading" + exports: ["TiltReading 1.3"] + Property { name: "yRotation"; type: "double"; isReadonly: true } + Property { name: "xRotation"; type: "double"; isReadonly: true } + Signal { name: "yRotationChanged"; type: "void" } + Signal { name: "xRotationChanged"; type: "void" } + } ModuleApi { version: 1.3; name: "QmlSensorGlobal" } } |