summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-01 16:22:30 +0200
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-01 16:22:30 +0200
commit1d2ad137ebf73beeca408802e591db58029f4705 (patch)
treea8e7c4c1226c44aafc7c50fadd79333831ed4c37
parent181a40f8edddafd4eb22acea97a9ca90f9c355f3 (diff)
parent6c0f72f1c1c377cc21a53354987beb0d1fdb555e (diff)
Merge branch '1.0' of scm.dev.nokia.troll.no:qtmobility/sensors into 1.0-integration
* '1.0' of scm.dev.nokia.troll.no:qtmobility/sensors: double tap is the default
-rw-r--r--plugins/sensors/maemo6/maemo6tapsensor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sensors/maemo6/maemo6tapsensor.cpp b/plugins/sensors/maemo6/maemo6tapsensor.cpp
index 06ffc3ebbf..8fd930df8b 100644
--- a/plugins/sensors/maemo6/maemo6tapsensor.cpp
+++ b/plugins/sensors/maemo6/maemo6tapsensor.cpp
@@ -50,7 +50,8 @@ maemo6tapsensor::maemo6tapsensor(QSensor *sensor)
const QString sensorName = "tapsensor";
initSensor<TapSensorChannelInterface>(sensorName, m_initDone);
- addOutputRange(0, 1028, 1); // statically this
+ addOutputRange(0, 4, 1); // axes only, no directions, statically this
+ sensor->setProperty("returnDoubleTapEvents", true); //by default doubles
if (m_sensorInterface){
if (!(QObject::connect(m_sensorInterface, SIGNAL(dataAvailable(const Tap&)),
@@ -61,7 +62,6 @@ maemo6tapsensor::maemo6tapsensor(QSensor *sensor)
qWarning() << "Unable to initialize "<<sensorName;
-
setReading<QTapReading>(&m_reading);
}