summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensorgestures
Commit message (Collapse)AuthorAgeFilesLines
* Use qRadiansToDegrees() and qDegreesToRadians() more widelyEdward Welbourne2017-03-062-6/+4
| | | | | | | | | They document intent more clearly than arithmetic with pi does. Also eliminate some hand-rolled RADIANS_TO_DEGREES constants in favor of calling qRadiansToDegrees(). Change-Id: I7ca5e876b3591433bf681b56ad51c4cb409ac59f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Replace Q_DECL_OVERRIDE by overrideAlexander Volkov2016-12-0213-61/+61
| | | | | | | 'override' keyword can be used directly since Qt 5.7. Change-Id: Ibf0fc590f7e247a310a833a22ece700ec75199bb Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-012-6/+7
|\ | | | | | | Change-Id: I53d801a88bda3a8b8519b6002e1d37053c03e103
| * QCoverSensorGestureRecognizer: sanitize initialization.Edward Welbourne2016-05-302-6/+7
| | | | | | | | | | | | | | | | | | | | | | Coverity noticed uninitialized members (CID 22309). Eliminate members handler (never accessed or set; the code always uses QtSensorGestureSensorHandler::instance() instead) and lastTs (set but never accessed). Initialized timer (to 0; it'll be set more sensibly as long as create() gets called). Reformatted constructor. Change-Id: I41738ec51db94fb35e068af509e9a34bf9221770 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-03-072-10/+8
|\| | | | | | | | | | | | | Conflicts: src/sensors/doc/src/compatmap.qdoc Change-Id: I7bd464cbd506f630798091fef3896050ade7b3f8
| * consistently put {qt,qml}_{module,plugin} at the end of project filesOswald Buddenhagen2016-02-252-10/+8
| | | | | | | | | | | | | | | | this fixes static builds by ensuring that all dependencies are exported. Task-number: QTBUG-51071 Change-Id: Ia3c3f69505650fd35982fc76e385e744b877e4df Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-2028-392/+560
|/ | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Id129b1497aa9d61fd16332e3b324f28dcf7bdd5b Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-1728-194/+194
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I141862df4ed2475c05ebbeb8fe447c4a6e736849 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update license headers and add new licensesJani Heikkinen2014-08-2428-530/+306
| | | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I99c601a398559886c2900f3e04833acfceba8263 Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* fix obs buildLorn Potter2014-05-2017-19/+21
| | | | | Change-Id: Ia70486a0c6b813829ffd633f5334945f73d3b628 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* add PLUGIN_CLASS_NAME declarations to plugin projectsOswald Buddenhagen2014-04-092-0/+4
| | | | | | | | | | | needed for automatic static linking (and later deployment). the gesture plugins are excluded from the automation based on the assumption that they are usually not needed. the example and the test plugin are also excluded for obvious reasons. Change-Id: I7645aa0daf216ce430989e13d4380dbe6dd2bbd1 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Normalize signal & slot signatures in connectionThiago Macieira2014-02-0310-62/+62
| | | | | | | Profiling shows Qt Creator spends 2% of its load time normalizing Change-Id: I462d0e0b603ab644e57c5b804015508abeebdc6e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Make QtSensors use Q_DECL_OVERRIDESamuel Gaist2013-11-1913-61/+65
| | | | | | | | | This patch aims to make QtSensors uses Q_DECL_OVERRIDE uniformly across the module Task-number: QTBUG-27392 Change-Id: I5f814f93307159175f92e29a9990587c03cce96f Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Initialize active variable in doubletap gestureLorn Potter2013-07-121-0/+1
| | | | | | | Fixes flakiness. Change-Id: I6e8beaf5106c4dd1e26c3bf038ba9e394d0f080d Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Merge branch 'release' into stableSergio Ahumada2013-07-031-0/+3
|\ | | | | | | Change-Id: I08bb0d6a9d4b0dddf76f463c32b3a4efdd632f0d
| * Freefall gesture needs to be initialized into plugin to be usableLorn Potter2013-07-031-0/+3
| | | | | | | | | | | | | | | | | | | | This fixes the flaky unit test failures. It also adds freefall to unit test. Task-number: QTBUG-32108 Change-Id: Ia1ee852b1e57b937fd7368073e259a139da9a697 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Merge remote-tracking branch 'origin/release' into stableFrederik Gladhorn2013-06-254-4/+2
|\| | | | | | | Change-Id: I451682790ba1949c150d4045baf9df0cd467d486
| * Fix loading of all sensorgesture plugins.v5.1.0-rc2v5.1.0Lorn Potter2013-06-224-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | After the change in qtbase 732dcfe7, only the first sensorgesture plugin was actually being loaded. Since the FILE argument of Q_PLUGIN_METADATA is optional, removing that and the json file fixes the following bugs: QTBUG-31900 QTBUG-31901 Change-Id: I7c0b67605a8fe680c37639f08926140e137dbe66 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Fix warning by the compiler, probably caused by a bad conflict resolutionThiago Macieira2013-06-041-1/+0
|/ | | | | | | | | | qshakerecognizer.cpp:161:28: error: expression result unused [-Werror,-Wunused-value] The statement was unused, the last branch of an || that was removed in fb06538f. Change-Id: I4badb3e5f4272086d44004b9beaca330f8ed7ab6 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* remove nokia and replace with qt-project in pluginsLorn Potter2013-02-071-1/+1
| | | | | Change-Id: I63fa985991653e4b8465a7fb88acab647d8546e8 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-292-2/+2
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-282-2/+2
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* remove the need to use QTimer and use timestamps instead.Lorn Potter2012-11-1415-128/+194
| | | | | Change-Id: I6327357de9f84df3db86d714747210fe62547818 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add freefall sensorgesture.Lorn Potter2012-11-133-0/+209
| | | | | | | I did this as a gesture, but could easily be a virtual QSensor. Change-Id: I95ea97745f8537dd6d6940b290d470d0367383c2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* adjust to qt_plugin.prf and qml_plugin.prf changesOswald Buddenhagen2012-11-022-10/+2
| | | | | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. this contains a nasty hack for examples, as we don't want users to use the internal prf files. Change-Id: I9e854e7ff6183e19801998ff7157a279b97b2be4 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2426-624/+624
| | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I85014238e262cb59d8d92b0d708851e82e5633da Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-132-4/+0
| | | | | Change-Id: Ieaa07fcaf28f754c14774dee61697624d33cabf8 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-262-2/+2
| | | | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL - pointless include and depend paths Change-Id: I2c5062c238c6948f99d72f7c5544095cd30c988d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* make twist work better when the phone is tilted.Lorn Potter2012-06-132-31/+114
| | | | | Change-Id: If4c04a6e3f9a936f55233c621d184bc0e4d99e1b Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix the QList logic - dont append and then removeLast.Lorn Potter2012-05-251-1/+1
| | | | | Change-Id: I4311cffddc1653ecf62129bb392350acc6e60276 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix crash when starting hover for the first time by itself.Lorn Potter2012-05-251-0/+4
| | | | | Change-Id: I4f15a1b959a35ec572d13c95430b0058b75b2061 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix false positive sensor gesture recognition when slam is too close to headLorn Potter2012-05-242-3/+24
| | | | | Change-Id: Ic6aa24ca44b6cb61c1592bd8536a092d7ec0fc90 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* optimize and simplify twist gesture code.Lorn Potter2012-05-242-109/+88
| | | | | | | | twist will better work with varying twist speeds. Change-Id: Iacb87ff8ad337d0b393497f49cf75d73eacdc4e6 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix false positive whip gesture.Lorn Potter2012-05-241-33/+18
| | | | | | | | false positive was tapping fingers on screen would produce a whip : Change-Id: Ibff1323f27e899cd63bdbaddcf0e77915a993b21 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make hover gesture work betterLorn Potter2012-05-242-26/+67
| | | | | | | | | make hover work when the ir prox is calibrated. Also make sure that a hand moving up after doing a cover does not trigger a hover signal. Change-Id: I8925c4d7dd53302b9d9950989e37ad991216f621 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make hover work off difference to initial reflectanceLorn Potter2012-05-182-4/+11
| | | | | | | | instead of using hard coded values which may be different depending on devicecalibration. Change-Id: I1e0a41a7dd45b115daa9f4f873621ffbba673e21 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make twist dependent upon an orientation change.Lorn Potter2012-05-182-12/+18
| | | | | | | | | This fixes getting a twist gesture by just moving the device left or right. and update one test data that did not have needed orientation change when the gesture was performed. Change-Id: I4fd9148d3f9c3d093530d08c2f6834f0972c659e Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* reset certain values to make tests work betterLorn Potter2012-05-156-6/+18
| | | | | | | | | | timers need to be stopped when gesture is stopped, else it may interfere in the next test, where the same instance of timer is used. As well, reset some values. Change-Id: Ib69bbaab88d55bef1c3c5614cae1bdec378aa89b Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix up gestures for auto test dataLorn Potter2012-05-1111-109/+114
| | | | | | | | | | slam and other gestures need to be performed the way the test data shows. slam is effected the most as now the gesture needs no hold at end to be recognized, in accordance with data collected. Change-Id: Iedfcf8e42def0b1dfe1c4d289a416ca64d8846e1 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add required meta to the gesture plugin .pro filesLincoln Ramsay2012-05-092-6/+8
| | | | | | | | | | | Looking at the sensor plugins, it seems we need to load(qt_module) and load(qt_plugin) instead of the other things these were doing. Also, QT = core sensors because these plugins have no dependency on QtGui so we don't want to link that in. Change-Id: Id0560b0da39e6d2a7ed8619545189446324f69c0 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* make simulator work better with gestures.Lorn Potter2012-04-279-535/+0
| | | | | | | | code from the plugin has been moved into the manager so that every other plugin can be triggered by the emluator. Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make slam a bit more reliable.Lorn Potter2012-04-202-0/+2
| | | | | | | set the datarate for accel sensor to be known. Change-Id: I83f8771b178591adb518146473819602f7f48b23 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make whip easier and remove unused variablesLorn Potter2012-03-283-8/+3
| | | | | Change-Id: Id8b161f0de1a96a9a92a7fcbc11c9fd9c9fefe00 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix slam gesture to be downward only motion.Lorn Potter2012-03-262-12/+16
| | | | | Change-Id: I3b115ca075610e7ca63828d1b3cc3e72e3820d75 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* qshake[2]recognizer: Fix MSVC compiler warnings.Friedemann Kleint2012-03-232-8/+18
| | | | | | | | Warnings about conversion from qreal to bool, which is unintended. Change-Id: Iab668747d5d7cdeda57f934b90991e7b00914eac Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* whip is now too much like slam. so make whip be the old slam.Lorn Potter2012-03-222-62/+115
| | | | | Change-Id: Ib4be08e5fc828c24b00b0c90e0e9448603eef6bf Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* use const where possible.Lorn Potter2012-03-226-36/+36
| | | | | Change-Id: I2b78232c2ab25ebb7a931abcde18a9f01ff9c887 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* slam is now performed differently.Lorn Potter2012-03-222-98/+62
| | | | | Change-Id: Ib04655cdc16a0f8fea73b88cf8e36d0f00ce16f3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make slam easier and re-add orientation stuffLorn Potter2012-03-204-14/+38
| | | | | Change-Id: I7703a6abc537f317aa1186c919494faa866137fd Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use the new plugin mechanism for Sensors and SensorGesturesLincoln Ramsay2012-03-1612-12/+18
| | | | | | | | | | | | | | Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead, Q_PLUGIN_METADATA is used. Meta-data is provided through a .json file that is embedded into the plugin by moc. For now, this meta-data is not actually used because both sensors and gestures use a dynamic registration mechanism. Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>