summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors
Commit message (Collapse)AuthorAgeFilesLines
* Update QtSensors QML version for Qt 5.7 releaseAlex Blasche2016-05-032-5/+5
| | | | | Change-Id: I47e4537c8456e7b762da2a792f0584c1a783db56 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-alpha1Liang Qi2016-02-192-2/+2
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf src/sensors/doc/src/compatmap.qdoc Change-Id: I4049bc3c335a8a9db5c935032207d0bcfba78480
| * Update qml types for QtSensors 5.6.0 releaseAlex Blasche2016-02-021-1/+1
| | | | | | | | | | Change-Id: I9606b50810c63e49f6821e5188df54417601d11a Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
| * Fix inconsistent use of 'override'.Erik Verbruggen2015-12-231-1/+1
| | | | | | | | | | Change-Id: If952d7f9a0888a16c87bc75a96105c5eabc24377 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | Enable using the module in a statically built applicationAndy Shaw2016-02-041-0/+8
| | | | | | | | | | Change-Id: I470d742058d69d517249620b98eef136a9c6ca86 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-2043-602/+860
|/ | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Id129b1497aa9d61fd16332e3b324f28dcf7bdd5b Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Introduce QML Sensors 5.6 versionAlex Blasche2015-08-252-6/+7
| | | | | Change-Id: I9f84dd9595d055f424202fbc65de2198b06ee1f3 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Add two QList::reserve() calls.Sergio Martins2015-06-081-2/+6
| | | | | | Change-Id: Ie95283344006821ae2e84a3c6b01532cd4cf340f Reviewed-by: Vyacheslav Koscheev <vok1980@gmail.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* Update copyright headersJani Heikkinen2015-02-1743-291/+291
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I141862df4ed2475c05ebbeb8fe447c4a6e736849 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update plugins.qmltypes for QtSensors 5.5 releaseAlex Blasche2015-02-062-5/+5
| | | | | Change-Id: I4b5bd46487a3589171f115aba1ee1a57d0273f35 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Cleanup QtSensors QML plugin project fileAlex Blasche2015-02-041-5/+0
| | | | | | | | This was ancient code and qmake got much smarter since then. It caused an incorrect "qmltypes" make target too. Change-Id: I4dbbd70a80fac71dbf033e1af9fb5f256c7279c0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Update license headers and add new licensesJani Heikkinen2014-08-2443-807/+463
| | | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I99c601a398559886c2900f3e04833acfceba8263 Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Register all QtSensor QML types for version 5.4Alex Blasche2014-07-092-5/+6
| | | | | Change-Id: I6afcbcf691e203491ee563168c19d084c051a449 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* fix obs buildLorn Potter2014-05-2021-23/+23
| | | | | Change-Id: Ia70486a0c6b813829ffd633f5334945f73d3b628 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Create a new sensor type for distance.Andrew Inwood2014-03-283-0/+222
| | | | | | | | | | | | | | | | | | | 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>
* Doc: Append handler names to \qmlsignal documentationSze Howe Koh2014-03-181-0/+2
| | | | | Change-Id: I4754a36bd6977cc2bc83a3fee58fb5ce6d2c2c84 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Fix some typos in comments and documentationSergio Ahumada2014-03-041-2/+2
| | | | | Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Update QML plug-in interfaces for Qt 5.3 releaseAlex Blasche2014-02-262-79/+201
| | | | | Change-Id: If01a988c151ec696c8d02ca7c470d7e97a593b40 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* static linking: add classname to qmldirRichard Moe Gustavsen2013-10-231-0/+1
| | | | | | | | | The new qmlimportscanner for static linking depends on the qmldir reporting the classname of the plugins. So add that to sensors as well. Change-Id: I80fd0a1d705ef589268231e6399f612a74b70828 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Doc: Removed QML version from \inqmlmodule and put it in \qmlmodulev5.2.0-beta1Jerome Pasion2013-09-2719-36/+36
| | | | | | | | | | | | | -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>
* Merge remote-tracking branch 'origin/stable' into devv5.2.0-alpha1Sergio Ahumada2013-09-201-1/+1
|\ | | | | | | Change-Id: I24286cf6c037f10fbbfb6c7e3c7145ebb38c01ed
| * [Doc] Fix the SensorGlobal usage exampleold/5.1Gatis Paeglis2013-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If qml type is registered with qmlRegisterSingletonType(), for example: qmlRegisterSingletonType <QmlSensorGlobal>(package, major, minor, "QmlSensors", global_object_50); where: package = "QtSensors" major = 5 minor = 0 Then it can be accessed like this: import QtSensors 5.0 as Sensors var types = Sensors.QmlSensors.sensorTypes(); Task-number: QTBUG-33558 Change-Id: I228fb51e8a2887c59ac8edba1a944a9b2c6ec05f Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Merge branch 'stable' into devSergio Ahumada2013-08-051-1/+3
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ifed287670b09398ef659b9420c3e513a699a0944
| * Undefine near if it is already defined to prevent a build issueAndy Shaw2013-07-231-1/+3
| | | | | | | | | | | | | | | | | | | | In some Windows Embedded 7 SDKs near is still defined, so we need to undefine it in those cases. Task-number: QTBUG-32571 Change-Id: I0d48b9dafa2af31f88f48746bfcf4df9fe824554 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Merge branch 'stable' into devSergio Ahumada2013-06-072-40/+135
|\| | | | | | | | | | | | | | | Conflicts: .qmake.conf sync.profile Change-Id: I0eaa022110b99fc5bc7cdf6304b5cda3ad3e8f8c
| * Update all plugins.qmltypes filesLiang Qi2013-05-271-39/+134
| | | | | | | | | | | | | | Task-number: QTBUG-31388 Change-Id: I7a1a0b692d49961d07ae174cb5c2a614295ec98b Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
| * Fix MSVC-warning about comparing bool and qreal.Friedemann Kleint2013-05-231-1/+1
| | | | | | | | | | Change-Id: I10ea0eb3f5bacebe0d72cdce4fac529957c64f2e Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-04-162-8/+8
|\| | | | | | | Change-Id: Ia02497aafc94feba0381ffe8733cbc89f29fb412
| * Add missing Q_REVISION(1) to new 5.1 signalsThomas McGuire2013-04-112-8/+8
| | | | | | | | | | | | Change-Id: Ic98e6b4d9f4ac5c676d2183799a5a838c5085a70 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Added temperature property to pressure sensorBernd Weimer2013-04-093-0/+67
|/ | | | | | | | | | | 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>
* Use real properties for QSensor::bufferSize & coThomas McGuire2013-02-083-0/+75
| | | | | | | | | | | | | | | The #ifdef Q_DOC hack is not really needed and was confusing. In addition, expose those properties to the QML API. As a result, the backends can now listen to the bufferSizeChanged() signal to update the buffering while the sensor is running. This has been implemented for the BlackBerry platform. Change-Id: I5239ba2a4b791cfc9f684b44ff2bc103a7b5b0da Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Add a QAmbientTemperatureSensor class.Thomas McGuire2013-02-085-0/+236
| | | | | | | Port the Blackberry backend to use it. Change-Id: I6d4395f5ab9e0ce3fb6f76c47282929103929557 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Convert QMagnetometer::returnGeoValues to a proper propertyThomas McGuire2013-02-084-3/+14
| | | | | Change-Id: I39cde0046e8a3fc77edbcf5c9510e2dcf6c731c7 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Convert QRotationSensor::hasZ to a proper propertyThomas McGuire2013-02-083-2/+9
| | | | | Change-Id: I32edf761653fbe9d08710703b02fb1c0183aba3e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Convert QTapSensor::returnDoubleTapEvents to a proper propertyThomas McGuire2013-02-083-6/+9
| | | | | Change-Id: I62f626a8df765a50815f3b275da8b858cb24a30d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Convert QLightSensor::fieldOfView to a proper propertyThomas McGuire2013-02-083-10/+8
| | | | | Change-Id: Ic6e5388e0cbc2a0045157873c05aa241ffe5e82d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Add a QAltimeter class.Thomas McGuire2013-02-085-0/+236
| | | | | | | Port the Blackberry backend to use it. Change-Id: I3d3bc1d6fa8b42d3d0d64bcd3245050b67a37dc7 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add missing AxesOrientationMode to the QML plugin descriptionThomas McGuire2013-01-311-0/+8
| | | | | Change-Id: I2eef34cd39243deff640e24d1debae9dab1e5310 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Remove QT_{BEGIN,END}_HEADER macro usageSergio Ahumada2013-01-2817-34/+0
| | | | | | | | | The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb and is no longer necessary or used. Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html Change-Id: If3f1040766e1c7de05bb8e90cd8a8a2a349bd096 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add QHolsterSensorThomas McGuire2013-01-235-0/+237
| | | | | | | | | | This adds a new QHolsterSensor plus the assorted reading and filter classes, as well as a QML API. Also implement the Blackberry backend for it. Change-Id: I42e76c21ee74a39a65629e7ab6d9a18f23eae4d4 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add a axes remapping featureThomas McGuire2013-01-233-0/+91
| | | | | | | | | | | This allows orientable sensors like accelerometer or compass to change to adapt the reading values based on the current screen orientation. Add support for the BlackBerry backend. Change-Id: If7cfde8f20da4f677fdd13c38f7e11f2ed96bedd Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add API for duplicate skippingThomas McGuire2013-01-234-1/+32
| | | | | | | | | | | Duplicate skipping enables omitting reading values that are very similar to the previous one, thus saving processing power. Implement this for the Blackberry backend. Change-Id: Ic608d8ca795b5a2e0bca5a75a62e8005c283c620 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add QPressureSensorThomas McGuire2013-01-235-0/+237
| | | | | | | | | | This adds a new QPressureSensor plus the assorted reading and filter classes, as well as a QML API. The Blackberry backend is ported to use the new reading class. Change-Id: Ifc86a2ae955a9337a67fd9a86ceabab908917cb3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* QAccelerometer: Add AccelerationMode propertyThomas McGuire2013-01-235-32/+117
| | | | | | | | | | | Add a new property to be able to toggle effects of gravity on or off. Implement the Blackberry backend side of this as well. QTBUG-25842 Change-Id: I15c4cae72373f48b0153b83c6aa3d27b66538c87 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
* Remove the QtSensors:: prefix from documentation.Thomas McGuire2012-11-0315-80/+80
| | | | | | | | This appears to be implicit. Now the property documentation is built correctly. Change-Id: I3998582fdeabf751a612c379df69f5eb41b9419d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update QML metadata fileThomas McGuire2012-11-021-103/+12
| | | | | Change-Id: I6d9231e49d9acdfbc64c391f0c80312508943c80 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Removal last references to QtMobilityThomas McGuire2012-11-023-3/+3
| | | | | | | Change-Id: Ia92de27ec25451b64a2e584507ca44485b94745a Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com> Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* adjust to qt_plugin.prf and qml_plugin.prf changesOswald Buddenhagen2012-11-021-11/+0
| | | | | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. this contains a nasty hack for examples, as we don't want users to use the internal prf files. Change-Id: I9e854e7ff6183e19801998ff7157a279b97b2be4 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-1118-191/+144
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-092-246/+31
| | | | | | | | | | | 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>