summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-24166-3973/+3973
| | | | | | | | | | 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>
* Fix the compilation issue on Linux (Harmattan)Laszlo Papp2012-09-151-0/+1
| | | | | | | | errno is used for constructing a warning message meanwhile the errno.h is not included. This is causing a build issue at least on Harmattan. Change-Id: Ia2697ecdcb893102c16d054a555a3e71fe4aa009 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-138-16/+0
| | | | | Change-Id: Ieaa07fcaf28f754c14774dee61697624d33cabf8 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* remove vestiges of unistd-based file accessOswald Buddenhagen2012-09-052-7/+1
| | | | | | | it's all done with QFile now Change-Id: I0f8147bcedc1514ed7685fb6f8b42f7fbe65a4aa Reviewed-by: L Potter <lorn.potter@gmail.com>
* use a float not an int.Lorn Potter2012-09-021-1/+1
| | | | | Change-Id: Ib569e9436cef4ba32721f8f8db97e9eaf43959dd Reviewed-by: L Potter <lorn.potter@gmail.com>
* Pass through invalid data rates to the backend instead of ignoring themThomas McGuire2012-08-283-14/+10
| | | | | | | | | This gives the backend the chance to do something sensible with it, at the expense of the data rate not being reported correctly in those cases. Change-Id: Iadf72b4448145f2454bc9422dde094ad799cb17a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Use real compass sensor if availableThomas McGuire2012-08-282-0/+15
| | | | | | Change-Id: Iecae90f4c315668d7ac16923ccdfcacf6153d0e8 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update qmldir, plugins.qmltypes filesLincoln Ramsay2012-08-246-29/+57
| | | | | | | | | | | We need a module <Foo> now in qmldir files (related to QTBUG-26551). Also update the rebuild_qmltypes rule so it creates the files with the correct name. Change-Id: I0eed30ac88a38f2b3ca83d008f09412544f99343 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Fix potential division by zero.Thomas McGuire2012-08-241-3/+5
| | | | | | | | | | | | Some users reported a division by zero problem when connecting to the backend, I suspect this is the reason for it. The sensor service seems to report either the min or the max delay as zero. Change-Id: I8b7e8f7c3243d7016c0c4472713c4c116471015d Reviewed-by: Tobias Koenig Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com> Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: I98306597742599532bf01d339f8c7807437f59dc Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Port configure tests to the new style to make them work againThomas McGuire2012-08-081-1/+3
| | | | | Change-Id: Ia7a284fc407a28a3cfae14358a8286864ad0c25a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Only build qml components/examples if qtdeclarative is presentCorentin Jabot2012-08-081-4/+6
| | | | | Change-Id: I31e1873e9ef243c86c07b0a39edc9d1d61820944 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Doc: Changed \qmlclass to \qmltype and added \instantiatesJerome Pasion2012-07-306-29/+58
| | | | | | | | | | -\qmlclass is now \qmltype -\instantiates is for QML types implemented in C++ Change-Id: I7f1af4eae6ad9d199859911b5ab51696a59a9b36 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Blackberry: Improve detecting whether the application is activeThomas McGuire2012-07-252-8/+49
| | | | | | | | | | | | Previously, we simply assumed to be active. Now, we read the state from the navigator PPS file instead. Also move reading of the orientation into its own function for consistency. Change-Id: Icc1789bd942e8fa5a9d5451de4c2ab9f3ffb54e4 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
* Blackberry: Affirm that QSensor::Buffering is supported now.Thomas McGuire2012-07-241-2/+3
| | | | | | | | | | | | The patch adding QSensor::Feature support was developed before buffering was implemented on Blackberry, so update this to reflect the current situation. Also fix compile warning about missing Reserved value. Change-Id: I085afeefc6c2dc7f520c9ef93d90a93f3e8a03e7 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Implement axes remapping for all axes-based sensorsThomas McGuire2012-07-248-76/+113
| | | | | | | The remapping code was moved to BbSensorBackend. Change-Id: I6ede875594a2aaa3745b7deb4aa0ed64c2d9b855 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Remove QtGui dependencyThomas McGuire2012-07-249-62/+239
| | | | | | | | | | | | | In the Blackberry backend, we can't depend on QtGui and especially not on the Blackberry QPA plugin, as Cascades uses QCoreApplication, not QGuiApplication. All QtGui functions are replaced with a new GuiHelper class, that internally uses BPS. Change-Id: Ia508e8b397050676c68612340d33cdbf57041076 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Remove custom BbProximityReadingThomas McGuire2012-07-242-85/+4
| | | | | | | | | | BbProximityReading extended QProximityReading with a distance and a reflectance property. Reflectance is already available in the IR proximity sensor, while distance isn't supported on any device. Change-Id: I413d3e35b0ccae29592dc11c287c3af6d5133ecc Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Use the rotation matrix as the compass sourceThomas McGuire2012-07-236-39/+107
| | | | | | | | | | This fixes the direction flipping over when holding the device upside-down. Change-Id: I57bac63208d475d4091b47593b9768613eea30b0 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Add QSensor::isFeatureSupported()Thomas McGuire2012-07-237-0/+106
| | | | | | | | | | | | Now it is possible to check if a backend supports a specific feature. During reviews of features like acceleration mode or duplicate skipping, the issue was raised how to check if these features are actually supported. The same is true for existing features like QMagnetometer::returnGeoValues. Change-Id: I47115d6c487bbcbb668a9021cdc7085e6780a67c Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Don't build the generic and dummy plugins.Thomas McGuire2012-07-201-0/+6
| | | | | Change-Id: I12b14975bae9bf834f82e0f04d72baa9b506cbef Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add linux sys accelerometer reader backendLorn Potter2012-07-186-0/+366
| | | | | | | Most of this code comes from QtMobility n900 sensors backend. Change-Id: Iacbf9363ac8fc4b8b737dc857766f02655374db7 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Introduce QRotationReading::setFromEuler() in favor of set{X/Y/Z}()Thomas McGuire2012-07-184-30/+18
| | | | | | | | | | | | | In preparation of adding new representations to the reading (QTBUG-25840), the setX(), setY() and setZ() setters were removed, as these don't set the representation atomically, and don't provide a single point where a conversion to matrix or quaternion can occur. These setters were only supposed to be used by the backends, and all backends are ported in this commit. Change-Id: Ib652520578d293687fc8515d226f1f61aa2f2def Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Implement bufferingThomas McGuire2012-07-122-0/+34
| | | | | | | | | | | The API provided by QSensor does not fit nicely for what the OS service API provides. Instead of adding yet another buffer-related property to QSensor, I added documentation to QSensor describing the differences in behaviour. Change-Id: I2d81d9c62ce7e8b50c27631a28aa7fbcaca70373 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* use centralized qml plugin project handlingOswald Buddenhagen2012-07-118-91/+8
| | | | | | Change-Id: I6afbc938a3db79f3a27b2b83d72e111e5d03ea9c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Blackberry: Remove rotation property from orientation readingThomas McGuire2012-07-032-65/+5
| | | | | | | | | The rotation property is redundant, as it can be deduced from the orientation. Furthermore, for FaceUp and FaceDown orientations, the rotation is always 0, further confusing the issue. Change-Id: I4348cd56fe713358d388a09829224159eab8b6b8 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* QSensor: Use standard Qt dpointer patternThomas McGuire2012-07-0326-85/+195
| | | | | | | | | | | | | Now it is possible to extend QSensor subclasses without breaking binary compatibility. In addition, de-inline the constructors and destructors of subclasses to make it possible to replace them without compatibility problems. Change-Id: I69de97002ade3e75f090761f852a5aca39c0f555 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make_sensors.pl: Add \since tagThomas McGuire2012-07-031-0/+3
| | | | | | | Otherwise it is easy to forget about this Change-Id: Ib1da49c136f3e9cf99f68dd283143fe2fc0eb930 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use \sa links to link to the C++ documentationThomas McGuire2012-07-021-98/+111
| | | | | | | | This fixes the incorrect grammar in some of the sentences. Change-Id: I013b0ce8afb5d067b97e6980c76103e40e4aa6ed Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
* 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>