summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-0938-2896/+73
| | | | | | | | | | | The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add SensorGesture QtMobility.sensors 1.3Lincoln Ramsay2012-10-088-72/+447
| | | | | | | This has been imported from QtSensors 5.0 without changes. Change-Id: Ie6a919f9b806bf19287a693fb7cdb563f8697e13 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Blackberry: Avoid expensive close() and open() just to get informationThomas McGuire2012-10-042-14/+29
| | | | | | | | | Instead, open the device to get information, but then just pause it until start() is called. Change-Id: I3002bee07807d3956e74e8fd82425b16cdb61001 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add TiltSensor to QtMobility.sensors 1.3Lincoln Ramsay2012-10-0325-255/+962
| | | | | | | | | | | This has been adapted from the TiltSensor type in QtSensors 5.0 import but the code there has been split into multiple pieces. There's a C++ class, a generic backend and a QML interface. Change-Id: Ic09465a5f76250a02a13938abe4789958137376f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove QtCreator hack from qtsensors.proIikka Eklund2012-10-011-10/+0
| | | | | | | | | This hack causes autotests to get exported even if Qt is configured with "-nomake-tests" option. Change-Id: Ic21879c7c0d5c8c4cfe992e91f86bd2f811fb635 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add examples and config test binaries to gitignoreThomas McGuire2012-09-271-0/+18
| | | | | Change-Id: I4d75d5f342c295a60945247ce745035811dca5d1 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtSensors examples: Install plugins under the example tree structureTopi Reinio2012-09-277-6/+18
| | | | | | | | | | | | | QtSensors 'Grue' and 'Sensor Explorer' examples include qml imports, a Qt plugin and a shared library. Modify the related .pro files to install everything under QT_INSTALL_EXAMPLES, instead of the main Qt install directory. Task-number: QTBUG-26860 Change-Id: I32d4f66e5b18468c17b668ecb76f969ed15e4c50 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Alex <ablasche@gmail.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* HTML template: Updated copyright notice from Nokia to Digia PlcJerome Pasion2012-09-262-29/+4
| | | | | Change-Id: Id762b19d0c252dbe2ca7fd80dfecaf7465f089d8 Reviewed-by: Martin Smith <martin.smith@digia.com>
* QtMobility.sensors has a new implementationLincoln Ramsay2012-09-2646-877/+4269
| | | | | | | | | This implementation fixes the limitations the original code had and separates the QtSensors C++ API from the QML API so that changes to one don't need to affect the other. Change-Id: I519463f3c7cfbad3bce5c291ce166b8793d5ed4a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-24309-6033/+6033
| | | | | | | | | | 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>
* Doc: Adding documentation templates from qtbaseJerome Pasion2012-09-223-0/+776
| | | | | | Task-number: QTBUG-27293 Change-Id: I8b91da22b62b5ad8d36a5c0e0eaee5321fa500cf Reviewed-by: Martin Smith <martin.smith@digia.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-139-16/+1
| | | | | Change-Id: Ieaa07fcaf28f754c14774dee61697624d33cabf8 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Remove wrong image.Leonard Lee2012-09-062-1/+0
| | | | | Change-Id: I00f24f482e59ae74f68d82bba32c3540d5c059ed Reviewed-by: Jerome Pasion <jerome.pasion@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>
* Update the git-archive export optionsThiago Macieira2012-09-032-0/+4
| | | | | | | | | | | | | | The .gitattributes and .gitignore files do not need to be present in packaged sources, as they are for people using the Git repository. People who download tarballs usually don't reimport into Git -- they should just download the actual repositories. Meanwhile, the .tag file is quite useful. Instead of making Git extract to the useless SHA-1 of the $n string, ask git-archive to store the SHA-1 of the commit being packaged. Change-Id: I54678dc436243d9dc87d0d755b142614a98699c4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* use a float not an int.Lorn Potter2012-09-021-1/+1
| | | | | Change-Id: Ib569e9436cef4ba32721f8f8db97e9eaf43959dd Reviewed-by: L Potter <lorn.potter@gmail.com>
* Make sensor explorer example againv5.0.0-beta1Thomas McGuire2012-08-282-6/+0
| | | | | | | | | | In QML it is now no longer allowed to override signals with a new signal that has the same name. In this case, the property change notification signal was overridden. Turns out that is not needed anyway here. Change-Id: I7e0a3f00098867dfb98273f264cc8dddd15cfaec Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Pass through invalid data rates to the backend instead of ignoring themThomas McGuire2012-08-284-22/+15
| | | | | | | | | 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-285-0/+76
| | | | | | 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-247-31/+59
| | | | | | | | | | | 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>
* QtCreator 2.5 doesn't understand load(qt_parts)Lincoln Ramsay2012-08-241-0/+6
| | | | | | | | I still want to use QtCreator to edit QtSensors so insert a hack so it can see the subdirectories. Change-Id: I0e6ffcf8b991ba130a6565c8523ae14035bcefe5 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>
* Fix QTBUG-26860 - install examples to qtsensors directoryLorn Potter2012-08-1611-22/+19
| | | | | Change-Id: Iab2407798616ed08ce7789020fe47b00e226d62d Reviewed-by: Alex <ablasche@gmail.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-084-8/+9
| | | | | Change-Id: Ia7a284fc407a28a3cfae14358a8286864ad0c25a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Only build qml components/examples if qtdeclarative is presentCorentin Jabot2012-08-083-15/+20
| | | | | Change-Id: I31e1873e9ef243c86c07b0a39edc9d1d61820944 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix compilationLars Knoll2012-08-071-1/+1
| | | | | | | This test needs core-private to compile Change-Id: I9e0d574a9c9ab6d6ede354b60c6a74b3b488d4ea Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-029-0/+9
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: Ie47ddce66e9738b43826e6472811ae76a88472d2 Reviewed-by: Alex <alex.blasche@nokia.com>
* Doc: Changed \qmlclass to \qmltype and added \instantiatesJerome Pasion2012-07-307-31/+62
| | | | | | | | | | -\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>
* Removed QT+=widgets from projects which do not use QtWidgets.Rohan McGovern2012-07-302-2/+0
| | | | | | | Fixes compile when QtWidgets is not available. Change-Id: I6df28b09198a20e3740cac62e7335178d17cacc3 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Add platform-specific documentation.Thomas McGuire2012-07-263-0/+206
| | | | | | | | | | Add a compatibility map that shows which sensors are supported by the various backends. Also document the generic backend. Change-Id: I3f15905e08c2f6feed60163e6a4356964a31f024 Reviewed-by: Lorn Potter <lorn.potter@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>
* Add the CMake directory created during unit testing to .gitignore.Stephen Kelly2012-07-231-0/+1
| | | | | Change-Id: I7d8873f1e2ffcee87b2605034df6c3bdd0a0afb6 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.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-2310-0/+133
| | | | | | | | | | | | 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>
* Test that the package configs for QtSensors work.Stephen Kelly2012-07-205-0/+90
| | | | | Change-Id: I0e633a4ff854beb2c2087ab231b413b1916c3372 Reviewed-by: Rohan McGovern <rohan.mcgovern@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-185-33/+19
| | | | | | | | | | | | | 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>
* use centralized handling of QT_BUILD_PARTSOswald Buddenhagen2012-07-111-23/+3
| | | | | Change-Id: Ib50f58e03eca48212cb05389257e248d44ca7ebb Reviewed-by: Rohan McGovern <rohan.mcgovern@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>
* Remove Meego backend notes from documentationThomas McGuire2012-07-031-29/+0
| | | | | | | There is no Meego backend anymore. Change-Id: I5e83a67892bb6b8e9affcbaacd91872104aa8d8b Reviewed-by: Lorn Potter <lorn.potter@nokia.com>