summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix gestureSignals on simulator buildsLorn Potter2012-05-186-28/+26
| | | | | | | remove started and stopped signals and call the manager directly Change-Id: If2c05576e858c196ab3ba3d786574afbf894ca4b 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-183-45/+168
| | | | | | | | | 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>
* Don't use bare strings.Lincoln Ramsay2012-05-171-6/+6
| | | | | | | wrap with QLatin1Sring Change-Id: Ifc89212e95b990e45f4c38e8e23e292e5f8cc604 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* send only signals being started. Avoids developer confusion.Lorn Potter2012-05-176-5/+57
| | | | | Change-Id: I7f49f14d0546a2a59a26777c6f8fa083ec29e0ba Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* remove code that created warning messages.Lorn Potter2012-05-161-2/+0
| | | | | Change-Id: Iea0f2202bf88589c6c910e3f41b913a42485685d 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>
* When tests are enabled, they're installed too.Lincoln Ramsay2012-05-151-2/+1
| | | | | | | | Otherwise we have to manually install tests after enabling then and having them built. Change-Id: Ie0ebe4f90284c0d14867304df48c75ff3cff04a4 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* add sensor gesture auto testsLorn Potter2012-05-1432-2/+6472
| | | | | | | | use mock sensor plugin to feed captured data through sensorgestures. Change-Id: I5d040f2b7d5786b79bf295c98777ada425acbe8a Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fixing header problems identified by the CI gateWolfgang Beck2012-05-1419-2/+41
| | | | | Change-Id: Ib1f65462a9203534538a18fdc6374fb125cd6f3d Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Prefer to use the BBNDK sensor.h if presentThomas McGuire2012-05-115-0/+80
| | | | | Change-Id: Ife482d8acb5a533f61e009bf65ec37215a7af595 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix up gestures for auto test dataLorn Potter2012-05-1112-113/+118
| | | | | | | | | | 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>
* Doc: Fix \sa usageMarius Storm-Olsen2012-05-102-2/+2
| | | | | | | | Ensure comma between elements (2 missing), single space and curly- braces around title elements, etc. Change-Id: I0e18c9847b4510d484d36c91c8be8a9ab5d10cd3 Reviewed-by: Casper van Donderen <casper.vandonderen@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>
* Add support for the compass sensorKevin Ottens2012-05-044-0/+147
| | | | | | Change-Id: Ia3c49b6d991439eba06537938198ed682f23065d Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add support for the pressure sensorKevin Ottens2012-05-044-0/+162
| | | | | | | Change-Id: I3b58ead1b24391ead4577777387dce44245e28a0 Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add support for the IR proximity sensorKevin Ottens2012-05-044-0/+126
| | | | | | Change-Id: I04e1c1eb7702626f4ce5e19b301f8774e604b930 Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Pause/resume sensor on application (de)activationKevin Ottens2012-05-033-1/+44
| | | | | | | | | | | | | | Each sensor now installs itself as an event filter of the application object waiting to (de)activation events. When an ApplicationDeactivate event arrives sensors are paused, they get resumed on ApplicationActivate. This behavior is inhibited by the alwaysOn property. Change-Id: I559239f279d9412d8836efad08e6688019504b16 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't crash when the emulator is missing.Lincoln Ramsay2012-04-302-1/+2
| | | | | | | | | | The emulator may be missing (eg. when running unit/system tests) so handle this case without crashing. Also fix a missing QLatin1String() around a bare string. Change-Id: Ibeeb0078c1ae12cec4bf8e3f4e81b3a4c72347da Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Using free instead of qFreeDebao Zhang2012-04-271-1/+1
| | | | | | | qFree has been deprecated. Change-Id: Ie64c791451cb3722183f2ea4d27b9b8e87a4f629 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add doubletap gesture to shakeit.Lorn Potter2012-04-271-2/+34
| | | | | Change-Id: Ic30ec2d896b6db83e3420d38a70644ab34b5bdc9 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Direct rendering is known to be buggy.Lincoln Ramsay2012-04-271-1/+0
| | | | | Change-Id: I461b35e778ddf61008a32485b699e440132a0b22 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Fix the Grue sensor exampleLincoln Ramsay2012-04-272-12/+37
| | | | | | | | QtUiTest (and possibly other things) will conspire to ensure our loading hack does not work. Do it the foolproof way instead. Change-Id: I4bb094a43498c2a58da2ed7fc656280ab40d5f06 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Try to smooth out camera movements.Lincoln Ramsay2012-04-272-3/+6
| | | | | | | | I don't remember this being so apparently jerky before. This is... better though not quite there. Change-Id: Ifa54071e139b4dbb278ed96087f7e138dfac30e4 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* make simulator work better with gestures.Lorn Potter2012-04-2713-402/+103
| | | | | | | | 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>
* sync.profile: remove dependency on qtsvg and qtscriptSergio Ahumada2012-04-271-2/+0
| | | | | | | There is no real dependency on qtsvg/qtscript for this module. Change-Id: I6e96672373be295d90e628f50f176a9af35c9c0d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Blackberry backend honors alwaysOn propertyKevin Ottens2012-04-272-0/+19
| | | | | | | | | | | Make sure the DCMD_SENSOR_BKGRND command is sent to the sensor when we call start(). Also ensure we send again the command when the property is updated. Change-Id: Ia37a96ba4dfc6fc1bdecf54ad2b730412939b32a Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Docs: change title of qml sensors example. Bug-9815Peter Yard2012-04-235-6/+6
| | | | | Change-Id: I5e5c57c8c3a86b17b52b35fb50e61b62fef12a0b Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make slam gesture doc a bit more clear.Lorn Potter2012-04-201-1/+1
| | | | | Change-Id: Id07b7b0bba74846262124638e612beed777d4b3c 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>
* Changes so that sensor.start() does not block (QML)Lincoln Ramsay2012-04-202-1/+7
| | | | | | | | | | | | | | The C++ library tries to delay things as much as possible. It turns out that doing this for QML is not optimal because it means calling sensor.start() can block for a long time (up to hundreds of milliseconds in worst case scenarious). If the sensor is started after the UI is visible, this will cause a stutter. The workaround is not particularly elegant. We force the sensors library to do its setup while the QML plugin is being loaded. Change-Id: Iae945ccb79eb568c5decbfdf8a5d623cd96e9d6b Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* QtSensors: Fix compilation after merging of the api_changes branch.Friedemann Kleint2012-04-182-4/+6
| | | | | Change-Id: I6d9f674eac15ad5f22de0e5631396c2c9eb1f19f Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix undefined behaviour when deleting sensor filtersSimon Hausmann2012-04-161-1/+1
| | | | | | | | QSensorFilter is a base-class that defines virtual functions. Therefore it also needs to declare a virtual destructor. Change-Id: I8f62b2eb825e73674980355a8419fb2d08f9c41c Reviewed-by: Andras Becsi <andras.becsi@nokia.com>
* Package the grue sensor example into a self-contained bundle.Lincoln Ramsay2012-04-165-0/+37
| | | | | | | | Cleaner for deployment (no need to write to inaccessible system locations) though it uses a bit of a hack to get QtSensors to find the backend plugin. Change-Id: Ibfa765d928a2d57429832c68594bcbe38f9d6a6e Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Allow setting the config file location explicitly.Lincoln Ramsay2012-04-122-4/+7
| | | | | | | | This is a workaround for platforms where QStandardPaths is either broken or returning paths that aren't useful. Change-Id: I4f7fbb0ea068d0bf13dc4f572ddbd25ad6048053 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Add blackberry backendThomas McGuire2012-04-1026-0/+2300
| | | | | | | | sensor.h is a temporary copy until this file is available in the Blackberry NDK. Change-Id: I6a47ee4c8ccc0cc3603ea2df3c9fd61259e8ffac Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add some MSVC generated files into .gitignoreYuchen Deng2012-04-101-0/+3
| | | | | Change-Id: I423527f2c761b5b12f03e9f21e225e72c42e81d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Locate the config file more reliably.Lincoln Ramsay2012-04-031-3/+6
| | | | | | | | | Sometimes we get an empty list. Sometimes we get a list with an empty string. Handle both cases. Change-Id: Ideca4538adafd5abf21d117e99765757a7af899e Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Fix QNX buildThomas McGuire2012-04-021-1/+1
| | | | | Change-Id: I8e8d316fb1bf0a6793a1f418af841c9ee85ac264 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Docs go in the build tree, not the source tree!Lincoln Ramsay2012-04-022-3/+3
| | | | | | Change-Id: I2d489c0ea78019e7b5ce5ea52868119baddffbd6 Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* fix up documentation according to the doc guys.Lorn Potter2012-03-298-71/+78
| | | | | | Change-Id: I417e3c57e986f9364f25d5a0e742bd31833de283 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Add .qmltypes files for Creator.Lincoln Ramsay2012-03-289-7/+370
| | | | | | | | | | Only doing this for the actual QML APIs, not the examples ones. Can run make rebuild_qmltypes from a build directory to rebuild the .qmltypes files automatically. Change-Id: Ie1253646dde25861673c303b015a9ba9a4f0fbe3 Reviewed-by: Lorn Potter <lorn.potter@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>
* SENSORS_PLUGINS allows restricting the plugins that are built.Lincoln Ramsay2012-03-281-3/+3
| | | | | | | | Rather than having to remove plugins after build/install they can be removed from the build by setting SENSORS_PLUGINS when building. Change-Id: I9d0cf247043b683e32311e0a6fe69ef37e43455d Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* If QStandardPaths doesn't give us a path, use /etc/xdgLincoln Ramsay2012-03-281-33/+29
| | | | | | | | | If Qt has been built with the Json-backed QStandardPaths and /etc/user-dirs.json doesn't contain a "CONFIG" entry then we get no path. In that case, just look in /etc/xdg. Change-Id: Id184912c70c940e73fdb2f7e771632c262460aea Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Allow easy building of platform-specific middleware.qt-v5.0.0-alpha1Lincoln Ramsay2012-03-271-0/+7
| | | | | | | | | This is a convenience for adding platform-specific middleware to a build. Set MIDDLEWARE to the name of the folder and it will be added to the build automatically. Change-Id: Ibd5a2b7d2abf652d7b35f95bdc8d53a0b28b567e Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix slam gesture to be downward only motion.Lorn Potter2012-03-264-14/+18
| | | | | 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>
* Remove compile warningsLincoln Ramsay2012-03-221-4/+4
| | | | | Change-Id: Ie98d22db40fb38742c3cd1fb0ae44fe1c0bbf2ec 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-226-65/+117
| | | | | Change-Id: Ib4be08e5fc828c24b00b0c90e0e9448603eef6bf Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>