summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorp2niemel <pia.s.niemela@nokia.com>2010-10-01 15:43:51 +0300
committerp2niemel <pia.s.niemela@nokia.com>2010-10-01 15:43:51 +0300
commit6c0f72f1c1c377cc21a53354987beb0d1fdb555e (patch)
treea8e7c4c1226c44aafc7c50fadd79333831ed4c37
parent7b64662397b6f8a58918494ea404fba971178a22 (diff)
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);
}