equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Mobility Components. |
7 ** This file is part of the Qt Mobility Components. |
8 ** |
8 ** |
57 The tap sensor registers tap events in one of the six directions. |
57 The tap sensor registers tap events in one of the six directions. |
58 There are 3 axes that originate from the phone. They are arranged as follows. |
58 There are 3 axes that originate from the phone. They are arranged as follows. |
59 |
59 |
60 \image sensors-coordinates2.jpg |
60 \image sensors-coordinates2.jpg |
61 |
61 |
62 By default it returns double tap events. The QTapSensor::returnDoubleTapEvents property |
62 By default it returns only double tap events. The QTapSensor::returnDoubleTapEvents property |
63 must be set to false to return individual tap events. |
63 must be set to false to return individual tap events. |
64 */ |
64 */ |
65 |
65 |
66 /*! |
66 /*! |
67 \enum QTapReading::TapDirection |
67 \enum QTapReading::TapDirection |
184 |
184 |
185 /*! |
185 /*! |
186 \property QTapSensor::returnDoubleTapEvents |
186 \property QTapSensor::returnDoubleTapEvents |
187 \brief a value indicating if double tap events should be reported. |
187 \brief a value indicating if double tap events should be reported. |
188 |
188 |
189 Set to true (the default) to have the sensor report on double tap events. |
189 Set to true (the default) to have the sensor report only on double tap events. |
190 Set to false to have the sensor report on individual tap events. |
190 Set to false to have the sensor report only on individual tap events. |
|
191 |
|
192 It is not possible to have the sensor report both single and double tap events. |
|
193 If both are needed the app should create 2 sensor objects. |
191 |
194 |
192 Note that you must access this property via QObject::property() and QObject::setProperty(). |
195 Note that you must access this property via QObject::property() and QObject::setProperty(). |
193 The property must be set before calling start(). |
196 The property must be set before calling start(). |
194 */ |
197 */ |
195 |
198 |