summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2011-09-07 13:22:01 +1000
committerLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-10 09:21:15 +1000
commit08cbcc4fb3eca3862faa1de37062ee0ccc78073b (patch)
tree253046617960579e33f43c1357c6b09032b068b5
parente0946a4f90a1a2ec380e6c4d05ac1e945a7daa9c (diff)
Add the IR Proximity sensor to the QML plugin
Needed for compatibility with the unofficial presence of IR Proximity in Mobility 1.2 Change-Id: I3fb1b8febb6137dadae37b6065cf04c6ddd21eb6 Reviewed-on: http://codereview.qt-project.org/4303 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
-rw-r--r--src/imports/sensors/sensors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/sensors/sensors.cpp b/src/imports/sensors/sensors.cpp
index e9eafd57..ea0f076a 100644
--- a/src/imports/sensors/sensors.cpp
+++ b/src/imports/sensors/sensors.cpp
@@ -52,6 +52,7 @@
#include <qtapsensor.h>
#include <qlightsensor.h>
#include <qgyroscope.h>
+#include <qirproximitysensor.h>
QT_BEGIN_NAMESPACE
@@ -92,6 +93,8 @@ public:
qmlRegisterUncreatableType<QLightReading >(package, major, minor, "LightReading", QLatin1String("Cannot create LightReading"));
qmlRegisterType <QGyroscope >(package, major, minor, "Gyroscope");
qmlRegisterUncreatableType<QGyroscopeReading >(package, major, minor, "GyroscopeReading", QLatin1String("Cannot create GyroscopeReading"));
+ qmlRegisterType <QIRProximitySensor >(package, major, minor, "IRProximitySensor");
+ qmlRegisterUncreatableType<QIRProximityReading >(package, major, minor, "IRProximityReading", QLatin1String("Cannot create IRProximityReading"));
}
};