summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Blackberry: Add Q_DECL_OVERRIDE keywordsThomas McGuire2012-07-0213-25/+25
| | | | | | | | Change-Id: Iae2c29ac040d32623ec49976cf4df0a7a492d28b Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Add ambient light sensor supportThomas McGuire2012-07-024-0/+137
| | | | | | | Change-Id: I119c5864599e206795522be485c4c218f983cfb9 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove auto-generated commentThomas McGuire2012-07-021-7/+0
| | | | | | | This comment was only intended to be read after make_sensors.pl ran. Change-Id: If327aa583848172b267c541db861de2e1114c301 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update make_sensors.plThomas McGuire2012-07-021-1/+8
| | | | | | | | | | Add: - Q_DECL_OVERRIDE - QT_BEGIN/END_HEADER - QT_MODULE Change-Id: I89da05d84612aaa804298cbdd8575d2135a125fd Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Don't use hardcoded sensor IDsThomas McGuire2012-06-291-10/+10
| | | | | | | Change-Id: I8a5e6995e735cd7d80e24c9462f144b75a177d5a Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com> Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update the export macros in qtsensors.gitThiago Macieira2012-06-271-18/+2
| | | | | | | Use the new, simpler QT_STATIC macro. Change-Id: I20bad6db7a77227d7d4213e43b1350468f44b9a2 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-267-15/+9
| | | | | | | | | | | | | | | | | - 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>
* auto-generate module prisOswald Buddenhagen2012-06-261-3/+1
| | | | | | Change-Id: I89ccb6cd05e58a1790480d5ea9c613ace4f42373 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix compilation.Friedemann Kleint2012-06-261-38/+0
| | | | | | | | qmlRegisterUncreatableType actually exists in declarative. Change-Id: Ia75855389fac95537eb6e3d8573db4ff55fad63c Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Cleanup last Symbian remnants in QtSensorsalex2012-06-227-69/+0
| | | | | Change-Id: I35eb858cad41167ac6bbbf17e48571965f34f8ca Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Hook doc generation into global QMAKE_DOCS contextalex2012-06-221-4/+1
| | | | | Change-Id: I3b654018a9d29719e56b928205f441e193fc01a3 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix the since tag usageLincoln Ramsay2012-06-201-1/+1
| | | | | Change-Id: Ie6124f99e1fbbbccda47ed144ddd565dd0cc4694 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Missing minor numbers in versionsLincoln Ramsay2012-06-196-31/+29
| | | | | | Fixes: QTBUG-25926 Change-Id: I3a2942b13a9d335a9c564b23cb4a79241d6895af Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Remove duplicate (incorrect) \sa link.Lincoln Ramsay2012-06-191-1/+1
| | | | | | | | The correct link is already present so remove the broken one. Change-Id: Ieb41733f40ff9f79a6a14ad0820d9c8b026f967e Fixes: QTBUG-25927 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Docs: change QML elements to QML types in docs.Peter Yard2012-06-196-101/+101
| | | | | Change-Id: I54a9a1972978f1d989d262f137b5890d1feb35e0 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* BlackBerry backend: Automatic Axis RemappingKevin Ottens2012-06-193-3/+78
| | | | | | | | | | | | | | | | Add a backend specific property named "automaticAxisRemapping" to force the sensor to modify its coordinate system based on the device native orientation. So usable from C++ using 'setProperty("automaticAxisRemapping", true)' or from QML using 'property var automaticAxisRemapping: true'. Note it requires QPlatformScreen::nativeOrientation() private API to find out the device native orientation. Change-Id: If4c5622fd42c74a55fe6d36966d7f589e612c117 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@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>
* Don't initialize sensors from registerTypes().Lincoln Ramsay2012-06-132-6/+0
| | | | | | | | This function gets called on a different thread... we don't really want that so just don't do that. Change-Id: I58dc0c0bc8d54221a0b6fd306552b67e2abf0235 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* setDataRates clobbers user-set data rateLincoln Ramsay2012-06-042-14/+19
| | | | | | | | | | | | | | | | | | | | | | Under normal conditions, dataRate is set/checked like so. QSensor::setDataRate records the data rate. It can't be evaluated because we have no backend. Upon getting a backend, we are notified of the available data rates. Re-evaluate the previously-set dataRate after connecting to a backend. The problem is that connectToBackend did not save the dataRate value until after setDataRates was called and setDataRates was clobbering the dataRate property. Two fixes will be made. connectToBackend will save the dataRate before creating the backend and setDataRates will stop clobbering dataRate. Also, setDataRates is now banned from being called outside of the constructor because otherwise an available data rate may disappear during use. Add a test case to verify that a previously-set data rate is not clobbered. Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update Examples using the same name conventionsWolfgang Beck2012-05-281-1/+1
| | | | | | | | | e.g. Folder of example should start with QtSensorrs_ Example documentation title should start with QtSensors - images folder renamed to content Change-Id: I341fb8510ba3ad64068d786559e8d28af5d135c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (Sensor Gestures).Lincoln Ramsay2012-05-282-5/+19
| | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensor gestures will start returning 0. Check for this to avoid the chance of a crash. Change-Id: I4b538ac9b9535bd9439a897d4eab51211c523e33 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Report failure to connect and disconnect from the emulator.Lincoln Ramsay2012-05-282-1/+15
| | | | | | | This does not happen very often but it's good to report it when it does. Change-Id: Iaec494f3aa449dbfcda1522ecde4da9311fa27c9 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (simulator plugin).Lincoln Ramsay2012-05-289-66/+45
| | | | | | | | | | Consolidate all of the Q_GLOBAL_STATIC data into 1 class so we have one lifetime to manage. Provide a static instance() method for use outside of the .cpp file and check for this returning 0. Change-Id: I243e2c5497e1c018ab7713bd9ef43ac22a658ff7 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (QtSensors).Lincoln Ramsay2012-05-281-0/+11
| | | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensors will start returning 0. Check for this to avoid the chance of a crash. Change-Id: If2c235b158c36339e35e40074a5b33dbe21a7726 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Zsolt Simon <zsolt.simon@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>
* Unfork the examples.Wolfgang Beck2012-05-243-3/+3
| | | | | | | | | | | | Some examples were forked off and updated. Unfork by bringing these changes back (a later update will bring the other examples in line with this new style). The changes are primarily made up of file renaming. Also, JPG files have been converted to PNG. Some documentation updates have been done. Change-Id: Ib090abb5ebea2003d479d2336a23317f52b8c4d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* 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-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>
* 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>
* 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>
* 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-112-0/+12
| | | | | Change-Id: Ife482d8acb5a533f61e009bf65ec37215a7af595 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>
* 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>
* make simulator work better with gestures.Lorn Potter2012-04-2712-365/+97
| | | | | | | | 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>
* 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>