summaryrefslogtreecommitdiffstats
path: root/src/sensors
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/stable' into devIikka Eklund2014-04-011-0/+3
|\ | | | | | | Change-Id: I6b203a32b2f52255ae4e63cfb279e762458c0128
| * Make it obvious what platforms are supported by QtSensors.Alex Blasche2014-03-251-0/+3
| | | | | | | | | | | | | | | | Also, this brings the front page layout somewhat further in line with qtlocation & qtconnectivity API docs. Change-Id: I5e54ae388892dcb2a806c4775828abcdc81eb79d Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Create a new sensor type for distance.Andrew Inwood2014-03-285-2/+339
|/ | | | | | | | | | | | | | | | | | | Create a new sensor type for distance. This sensor type supports new hardware sensors that can measure physical distance from the device, in centimeters. The API is designed to mimic the Android API for proximity (TYPE_PROXIMITY), so that if a given proximity sensor only supports a binary measurement (near vs far), then instead of reporting distance in cm, the QDistanceSensor will return the max range value to represent far, and a lesser value to represent close. Using this definition should simplify implementation. The main reason for not implementing this as a new property of QProximitySensor is that clients of QProximitySensor have made the assumption that they will receive the readingReady signal if and only if the reading has changed from near to far or vice versa. Adding a distance property will break that assumption, as distance has a higher degree of precision. Change-Id: Ia804948c78ff7391fc8b78df975cddcf861326dc Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix some typos in comments and documentationSergio Ahumada2014-03-041-1/+1
| | | | | Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Initial sensors backend for WinRT/Windows Phonev5.3.0-alpha1Andrew Knight2014-02-161-0/+36
| | | | | | | | | | This provides the sensor plugin with support for accelerometer, gyroscope, rotation sensor, orientation sensor, compass, and ambient light sensor. Change-Id: Ic91a6cef98e4011858552c5cd6407b494579fe17 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Fix code snippet in Qt Sensors QML Types documentation.v5.2.1Mitch Curtis2013-12-131-2/+2
| | | | | Change-Id: I5639fb872b8e41cc5c5b5968cf1ddf7e247961e2 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Make QtSensors use Q_DECL_OVERRIDESamuel Gaist2013-11-1910-10/+10
| | | | | | | | | 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>
* Doc: Updated url variable in qdocconf files.Jerome Pasion2013-11-061-1/+1
| | | | | | | | | | | | | In 5.2, the HTML output is in a flatter structure and when they are hosted in qt-project.org/doc, the documentation will be found at http://qt-project.org/doc/qt-$QT_VER The url variable is used by projects outside of Qt 5 which need to link to Qt 5 documentation, such as Qt Creator. Task-number: QTBUG-34584 Change-Id: Id4428de7ea0a7a4f7dd7a28d76927195c61755ce Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Doc: review of QtSensorsNico Vertriest2013-11-0411-121/+133
| | | | | | | | | | Minor corrections in compatmap.qdoc Task-number: QTBUG-32173 Change-Id: Ic4f881449e65c2d6889f0e217d251214997a8a56 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Doc: Removed QML version from \inqmlmodule and put it in \qmlmodulev5.2.0-beta1Jerome Pasion2013-09-272-3/+3
| | | | | | | | | | | | | -QDoc uses \qmlmodule to determine version -QDoc ignores versions in \inqmlmodule but it is better to remove the version to avoid confusion Task-number: QTBUG-32172 Change-Id: Iccab6b3fe201e8f01ddf130cd985bc0482425bf5 Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
* Android: Add missing sensorsPaul Olav Tvete2013-09-191-3/+3
| | | | | | | | | This adds Android backends for QAmbientTemperatureSensor, QPressureSensor and QProximitySensor. Task-number: QTBUG-30531 Change-Id: I8d97f62d007c886fcc8dd701e23f6a35a3cbd748 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Define the sensor coordinate system unambiguouslyPaul Olav Tvete2013-09-031-1/+3
| | | | | | | | | | | | | | All illustrations in the documentation show devices with phone form factors, i.e. portrait orientation. Some tablets have a native landscape orientation. It is not clear from the documentation if the sensor coordinate system should be relative to the portrait orientation or the native orientation. This change defines the native orientation as the canonical orientation. Task-number: QTBUG-32144 Change-Id: I870cb3c9b5aec04f2ed8394a4407b53b888e82c3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Doc: Setting \qtvariable in module page.Jerome Pasion2013-08-021-1/+1
| | | | | | | \qtvariable indicates the QT variable needed in .pro files. Change-Id: Ib3f6def889dddd7c92d0dc943424124af4aa8b09 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Doc: Setting navigation bar variables.Jerome Pasion2013-06-271-0/+4
| | | | | Change-Id: I3072c467f9e1d08d5e2869ebdb272d185e612f97 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Merge branch 'stable' into devSergio Ahumada2013-06-072-6/+0
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf sync.profile Change-Id: I0eaa022110b99fc5bc7cdf6304b5cda3ad3e8f8c
| * Doc: Removed duplicated list in Qt Sensors Examples page.v5.1.0-rc1Jerome Pasion2013-06-061-4/+0
| | | | | | | | | | | | | | | | \generatelist is not needed for group pages because QDoc will generate the list already. Change-Id: If04b07af292e4c05e4b6f933612027773837a6c3 Reviewed-by: Martin Smith <martin.smith@digia.com>
| * Doc: Removed landing page from the "technology-apis" group.Jerome Pasion2013-05-241-2/+0
| | | | | | | | | | | | | | | | The group in qtdoc is removed because the new overviews on the landing page replaced the group. Change-Id: I2e266d8d41ff933c033711880d088fed8f0a8abd Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-05-2344-81/+383
|\| | | | | | | Change-Id: I497c153fe555fbfbbd5fbb40f65f614ee33b065d
| * Document that the QSensor constructor should not be used directlyThomas McGuire2013-05-082-0/+33
| | | | | | | | | | Change-Id: I1907497b2bb3b1be65e98223e0337eef358743b6 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Add a private class to QSensorBackendv5.1.0-beta1Thomas McGuire2013-05-063-34/+124
| | | | | | | | | | Change-Id: Ifaac09159420b6cca197614a1fa9df8b6a8692dc Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * Make it possible to bundle Android buildsEskil Abrahamsen Blomfeldt2013-05-061-0/+5
| | | | | | | | | | | | | | | | | | Add the bundled jar file and information about required plugins. Task-number: QTBUG-30751 Change-Id: I41918e8f04449439703ef1ae91c78636e9475f36 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
| * Fix some potential binary compatibility issuesThomas McGuire2013-05-0639-48/+220
| | | | | | | | | | | | | | | | | | Mostly de-inlining methods, and in addition providing a virtual destructor. Change-Id: I0aef91e7a896e8a16fc023a11bd35a5ef3048ee6 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Doc: Define examples install path in .qdocconfTopi Reinio2013-05-031-0/+2
| | | | | | | | | | | | | | | | | | QDoc needs to know the directory under which the examples are installed in QT_INSTALL_EXAMPLES. Without it, example manifest files may contain invalid paths. Change-Id: Iac69054982d7f93d8282a935f278ba32eae6c72e Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-04-292-3/+3
|\| | | | | | | Change-Id: I4cfd0e2a2f108f5ecf79c56418c02928b041856e
| * QSensor: fix spelling in docRichard Moe Gustavsen2013-04-231-1/+1
| | | | | | | | | | Change-Id: Idcd84adc62015aa7986275b320f3bacf45c94635 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * iOS: implement proximity sensorRichard Moe Gustavsen2013-04-161-1/+1
| | | | | | | | | | Change-Id: Ia4c2dbe4f81ceda1600f9f642effbc3377cfa94d Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * iOS: implement compassRichard Moe Gustavsen2013-04-161-1/+1
| | | | | | | | | | Change-Id: I639a472cd2dfca177282cb4961d589f11f924e36 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-04-163-10/+9
|\| | | | | | | Change-Id: Ia02497aafc94feba0381ffe8733cbc89f29fb412
| * iOS: implement magnetometerRichard Moe Gustavsen2013-04-141-1/+1
| | | | | | | | | | Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Remove REVISION 1 from alwaysOn property.Thomas McGuire2013-04-111-1/+1
| | | | | | | | | | | | | | | | This is a leftover from QtMobility and has been available since Qt 5.0. Change-Id: I68300b402aa04f2ca9e9b609cc859327c26e1a8f Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Remove TODO commentsThomas McGuire2013-04-111-4/+0
| | | | | | | | | | | | | | With sensorfw we actually have a backend that uses these now. Change-Id: Iba088dc356a54ae43f29e8b5f77349a9a98c4d09 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * iOS: implement gyroscope for iOSRichard Moe Gustavsen2013-04-101-1/+1
| | | | | | | | | | | | Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Fix warnings in qtsensorsThiago Macieira2013-04-032-5/+8
| | | | | | | | | | | | | | | | qtapsensor.h:110:34: error: extra ";" [-pedantic] qsensor.cpp:147:12: error: ‘qrange_id’ defined but not used [-Werror=unused-variable] dummycommon.cpp:151:9: error: variable ‘ok’ set but not used [-Werror=unused-but-set-variable] Change-Id: Ief3b4841bae7c255a40ad8f19f3f8733a613db48 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* | iOS: implement magnetometerRichard Moe Gustavsen2013-04-101-1/+1
| | | | | | | | | | Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Added temperature property to pressure sensorBernd Weimer2013-04-095-1/+38
| | | | | | | | | | | | | | | | | | | | | | Many air pressure sensors provide their temperature, as well. This can be used for temperature compensation for instance. The pressure sensor API has been extended and a BlackBerry backend has been implemented. Change-Id: I188e1276dff74601d757d0a356b28b4fea4594bd Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | iOS: implement gyroscope for iOSRichard Moe Gustavsen2013-03-211-1/+1
|/ | | | | | Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* iOS: implement accelerometer for iOSLorn Potter2013-03-121-0/+18
| | | | | | | This change implements an accelerometer for iOS. Change-Id: Id6de98427312bc0be42935fd9704117665d1e4a2 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* fix up compatibility mapLorn Potter2013-03-111-3/+12
| | | | | | | and mention that sensor gestures are platform independent. Change-Id: Iee0cf4185d095e1e97cc7b222f35271bb72a75ab Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Document the generic tilt sensor in genericbackend.qdocThomas McGuire2013-03-111-0/+3
| | | | | Change-Id: I7b5e947ddc097744be2a90a118331a5af24f38ee Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* add sensorfw based sensor pluginLorn Potter2013-03-053-1/+55
| | | | | | | ported from qtmobility. Change-Id: Ia4ee6e2b7ecbc441c5f6605f1bbabfec22ddcd09 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Sensor implementation for AndroidPaul Olav Tvete2013-03-052-0/+29
| | | | | | | | | | | | | | | Based on the Necessitas project by Bogdan Vatra. Contributors to the Qt5 project: BogDan Vatra <bogdan@kde.org> Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Paul Olav Tvete <paul.tvete@digia.com> The full history of the Qt5 port can be found in refs/old-heads/android, SHA-1 caa4103a80ef90db5eb9836f6b6028b7ce36c73a Change-Id: I57e772ee5079c0ea74f685b65ae2864d73e7c750 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Spell "tesla" correctly in the documentation.Paul Olav Tvete2013-03-011-3/+3
| | | | | Change-Id: I3f5ac0b1adcdee9ba2c7ddd54302c3aca7a94bfb Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Update the porting documentationThomas McGuire2013-03-011-10/+15
| | | | | | | | | | - Remove some references to the legacy imports - Mention the biggest change, separate QML types - Add some examples on what changed in the QML API Change-Id: Icdbf8271935499ec449a35919d947ad762d2cf03 Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Update qdocconfThomas McGuire2013-02-261-16/+21
| | | | | | | | | | - Use version tags rather than hardcoded versions - Add a QML Types section to the TOC - Fix link to the overview page - Keep the rest more in line with other modules (used qtcore to compare) Change-Id: Ia86aad1fc50b8471847b2fb808bacf2cbcf1471c Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Fix some doc warningsThomas McGuire2013-02-262-2/+4
| | | | | Change-Id: Ia955a9071ae6662b211d57708624d339d9ec5e4f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Document the IR Proximity value behavior on BlackBerryThomas McGuire2013-02-261-0/+6
| | | | | | | Task-number: QTBUG-28087 Change-Id: Ibf2a37dce4c57506bf2073bee9f483d48c94e71c Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-02-258-13/+13
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/sensors/generic/generictiltsensor.cpp src/sensors/qtapsensor.h sync.profile Change-Id: I017a5fa8dffb69b41727495175c0fca9b76962e1
| * Eliminate a warning for "make docs" due to the improper style usageLaszlo Papp2013-02-251-1/+1
| | | | | | | | | | Change-Id: I7901d1527ea02738f37de50ab2c0addcf6d5c927 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * remove nokia and replace with qt-project in pluginsLorn Potter2013-02-073-4/+4
| | | | | | | | | | Change-Id: I63fa985991653e4b8465a7fb88acab647d8546e8 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * Fix pedantic errors and warnings (found by headers clean test)Thiago Macieira2012-12-235-10/+10
| | | | | | | | | | | | | | | | | | qorientationsensor.h:68:17: error: comma at end of enumerator list [-pedantic] qsensorgestureplugininterface.h:68:99: error: extra ';' [-pedantic] qsensorbackend.h:73:5: error: declaration of 'reading' shadows a member of 'this' [-Werror=shadow] Change-Id: I50a9fc993a3a3c3391f6231ccd2c1976c636045b Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>