summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* iOS: protect OS sensors from being stopped when shared by several Qt sensorsRichard Moe Gustavsen2016-08-258-14/+69
| | | | | | | | | | | | | | When a Qt sensor is told to stop, it automatically stops the underlying OS sensor as well. This caused a problem when several Qt sensors were running, since stopping one would stop them all. This patch will add a ref count for each affected sensor, so that we keep track of when it's safe to start and stop the underlying OS sensor. Task-number: QTBUG-54977 Change-Id: If06c4daac22916feef2f4c7bd521363d74f342a6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* IOSCompass: calculate correct calibration levelRichard Moe Gustavsen2016-08-251-2/+2
| | | | | | | A compass has 360 degrees, not 365. Change-Id: I2f0628fa0151434b1b529fbefd1a4bab9de99a8a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Make sure JNI_OnLoad is not called more than onceBogDan Vatra2016-07-201-0/+5
| | | | | | | | | | | | | Since Android 5.0 Google introduce a nasty bug[1] which calls JNI_OnLoad more than once. Basically every time when a library is loaded JNI_OnLoad is called if found, but it calls *again* JNI_OnLoad of its .so dependencies! [1] Workaround https://code.google.com/p/android/issues/detail?id=215069 Change-Id: I34728572bc279581b8c95c42c206ed104bfc09a5 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* OpenBSD: librt.so is not available on systemRalf Nolden2016-05-311-1/+1
| | | | | | | | | OpenBSD does not provide librt.so for the sensors module, which leads to linker errors in this case. Disable linking to librt.so by adding !openbsd to the list of OSes not having it. Change-Id: If7b33eb33b4027be79bce4bb3272bef3a5b7d832 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QCoverSensorGestureRecognizer: sanitize initialization.Edward Welbourne2016-05-302-6/+7
| | | | | | | | | | | Coverity noticed uninitialized members (CID 22309). Eliminate members handler (never accessed or set; the code always uses QtSensorGestureSensorHandler::instance() instead) and lastTs (set but never accessed). Initialized timer (to 0; it'll be set more sensibly as long as create() gets called). Reformatted constructor. Change-Id: I41738ec51db94fb35e068af509e9a34bf9221770 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Doc: Remove repository name from examplesinstallpathTopi Reinio2016-05-131-1/+1
| | | | | | | | Examples in binary packages now directly match the install path. Change-Id: Ib617462a75ba94ff32689c8cc8f0fb10e2db4431 Task-number: QTBUG-52953 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* Make more ctors explicitMarc Mutz2016-03-032-2/+2
| | | | | | | | | Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: Iadcd2f1c751bb5a9cef96b2732bb3a7a8e34c6f8 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Make public headers compile with -Wzero-as-null-pointer-constantMarc Mutz2016-03-0322-25/+25
| | | | | | | | | | | ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Task-number: QTBUG-45291 Change-Id: Iaa6ea07220566adc323010c52233416e6ae2b726 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Cleanup dead links in QCompassReadingAlex Blasche2016-03-031-2/+2
| | | | | | | Task-number: QTBUG-50165 Change-Id: I7a5e195ad5ea4d390609303e9ae7c047ecbf2399 Reviewed-by: Lorn Potter <lorn.potter@canonical.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Update supported sensors table for iOSAndy Shaw2016-03-011-4/+4
| | | | | Change-Id: I3885849352a59a23989605f0e62a594bd4c61db1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Purge sRGB chunks from PNGs in documentation.Edward Welbourne2016-03-011-0/+0
| | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce -force Change-Id: Ie54ce7153b23632cf2673f6f82ae8b3e4dec6e67 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* don't over-expose private dependenciesOswald Buddenhagen2016-02-251-1/+1
| | | | | Change-Id: I6045425fb467002db288854f9d0a8f8ea683876f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* consistently put {qt,qml}_{module,plugin} at the end of project filesOswald Buddenhagen2016-02-2511-47/+46
| | | | | | | | this fixes static builds by ensuring that all dependencies are exported. Task-number: QTBUG-51071 Change-Id: Ia3c3f69505650fd35982fc76e385e744b877e4df Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* 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>
* Android: Document that Compass works on AndroidAlex Blasche2016-01-041-1/+1
| | | | | | Task-number: QTBUG-50165 Change-Id: I1fedc47b19832c8c8400ca28314e2a374d5714de Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix inconsistent use of 'override'.Erik Verbruggen2015-12-231-1/+1
| | | | | Change-Id: If952d7f9a0888a16c87bc75a96105c5eabc24377 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Remove an obsolete external link.Venugopal Shivashankar2015-12-171-1/+0
| | | | | | Change-Id: I88eba8f9d5ad0633bf58692245c80cc767d2ab67 Task-number: QTBUG-50013 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Make GenericTiltSensor::calibrate known to QMetaObjectv5.6.0-beta1Oliver Wolff2015-12-031-1/+2
| | | | | | | | | | | | | When using qml calibrating the tilt sensor does not work on WinRT and Windows Phone without this change. QmlTiltsensor::calibrate calls QTiltSensor::calibrate which calls QMetaObject::invokeMethod with "calibrate" on its backend. That causes the message "No such method QSensorBackend::calibrate()" without this change. Thus the meta system has to be made aware of that function. Change-Id: I539c0fb44e20fffb78bf515ba3767dafa3ce4ed6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* winrt: Fix application hang on sensor start/stopOliver Wolff2015-12-037-101/+156
| | | | | | | | | | If addition and removal are not done in the Xaml thread, the functions might not return at all. Task-number: QTBUG-49741 Change-Id: Iabdea2c7ee18bf851ab70adfeb28b09781b8b609 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Doc: Update examplesinstallpath to include the repository nameTopi Reinio2015-10-211-1/+1
| | | | | | | | | | | | The examplesinstallpath variable in .qdocconf files defines the path under QT_INSTALL_EXAMPLES where examples are found. To match the way examples are packaged in Qt 5.6, prefix the install path with the repository name. Task-number: QTBUG-48736 Change-Id: I233a6d60edee3378231a9419c6de49fba17bdea2 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* doc: Fix "Qt Sensors Backend" pageAlexander Volkov2015-10-081-8/+6
| | | | | | | | | | Remove "Backend API" section, it's actually "Overview". Manually create the "Backend Topics" list as it's typically done in the Qt documentation. And by removing superfluous directive "\generatelist related" we avoid the duplication of the topics list. Change-Id: I82de56cd80fa6b8719f85d3a01c07bac3d9d6c1a Reviewed-by: Martin Smith <martin.smith@digia.com>
* Fix registration of the ambient light sensor in the generic pluginAlexander Volkov2015-10-082-9/+13
| | | | | | | | | | | It should be registered/unregistered depending on the availability of the default light sensor rather than the default accelerometer. Also mark the ambient light sensor as supported by the generic plugin in the documentation. Change-Id: Iff3828140b9549d994563fb736014091e568e867 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Added \section1 before the auto-generated list of QML typesVenugopal Shivashankar2015-10-051-3/+5
| | | | | | | | | To avoid a qdoc warning about the QML snippet structure, commented out the line with '...' in \qml \endqml block. Change-Id: I5f2124f374c441f8aac64322df251c70ba3cba3a Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-021-1/+2
|\ | | | | | | Change-Id: Ic4c5a95a53ff695b879314cd2d6092bcbe427d94
| * Only register plugins that sensorfw plugin can instantiateLorn Potter2015-09-071-1/+2
| | | | | | | | | | | | | | | | This makes it possible to use Tilt sensor from generic plugin. Task-number: QTBUG-47854 Change-Id: I14883e8d4a18a56c52845a4a5172c8c46bfe385f Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Introduce QML Sensors 5.6 versionAlex Blasche2015-08-252-6/+7
| | | | | | | | | | Change-Id: I9f84dd9595d055f424202fbc65de2198b06ee1f3 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-291-1/+1
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I988cf7a720d4b17e875339e0ec75cad270fd6186
| * Remove official support of BlackBerry on 5.5 in QtSensorsAlex Blasche2015-06-171-1/+1
| | | | | | | | | | | | | | | | The relevant code base will be removed in Qt 5.6. This change prepares qtsensors repo for the removal of the "Qt for BlackBerry" link. Change-Id: I67229cc0778ed54723ae4c6bf9302a3d54d11034 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* | Remove BlackBerry as supported platform from QtSensorsAlex Blasche2015-06-1844-2938/+7
| | | | | | | | | | | | | | | | | | [ChangeLog][QtSensors][Platform Specific Changes] Removed support for BlackBerry 10 from QtSensors. Change-Id: I56788caaa53797b7d4e23bb053c3ea8b460b1341 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@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>
* Merge remote-tracking branch 'origin/5.4' into 5.5Liang Qi2015-05-291-0/+1
|\ | | | | | | Change-Id: Icc01abe0bc7368455527b5f4b5299b4cb9f2b177
| * Fix clients starting sensors when sensorfw restarts.5.4Lorn Potter2015-05-281-0/+1
| | | | | | | | | | | | Task-number: QTBUG-45516 Change-Id: I45215714e8f5e4693e43d022a3ca313576c85d79 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Fix crash in AndroidCompassVyacheslav Koscheev2015-05-271-2/+5
| | | | | | | | | | | | Change-Id: I9031610c02d9418b46339c34b02264a03600403c Task-number: QTBUG-45691 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Updated WinRT license headers to use LGPLv3 instead of LGPLv21Jani Heikkinen2015-05-2115-150/+195
| | | | | | | | | | | | | | | | From 5.5.0 -> WinRT port is licensed with LGPLv3, see http://blog.qt.io/blog/2015/04/29/windows-10-support-in-qt/ Change-Id: I1c78b8f11d1640e36e6b90eea47500c5dd5408ee Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into 5.5Liang Qi2015-04-152-4/+5
|\| | | | | | | Change-Id: I06a505894844bfd17eb07106bed0c07ca2f9f79c
| * Fix double negative values, sensorfw already transforms the accel values.Lorn Potter2015-04-131-3/+3
| | | | | | | | | | | | | | | | No need to use a double negative in the chain of data to arrive at the correct values. Change-Id: I694037bb7f83083d3d281ec9544d7fa300861f1a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * Fix crash in QtSensors client, when sensorfwd is not running.Lorn Potter2015-04-021-1/+2
| | | | | | | | | | Change-Id: Iecb6fe8637001d3005aa04c58d1d888f534c5082 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Merge remote-tracking branch 'gerrit/5.4' into 5.5Alex Blasche2015-04-012-0/+29
|\| | | | | | | Change-Id: If6f44fe2cd69bae92cddd4682e952f2528b85184
| * add dynamic alwaysOn support for sensorfw backendLorn Potter2015-03-192-0/+29
| | | | | | | | | | Change-Id: Ibb4d335ff43a91f84f346ab32847ab376830ed35 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Fix QNX 6.6 build, use the q* version of math functionsSergio Martins2015-03-302-9/+9
| | | | | | | | | | | | | | genericrotationsensor.cpp:85:37: error: 'sqrt' was not declared in this scope Change-Id: I871b88130debdfd0a64421e4da8a451b586e7ba6 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
* | Fix SensorFW link in docsAlex Blasche2015-03-241-1/+1
| | | | | | | | | | | | | | | | | | Meego is long gone and Mer has taken over the continued development. In addition, Gitorious will shut down soon. Change-Id: Ib99738a6b9f013ff42ed46d2676de09c9528c9f6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | Merge remote-tracking branch 'origin/5.4' into 5.5v5.5.0-alpha1Frederik Gladhorn2015-02-241-3/+3
|\| | | | | | | Change-Id: I7b64e129ef941420378cda207f5fdf90efe4c463
| * Make sensorfw als values the common standard for QtSensors pluginsLorn Potter2015-02-241-3/+3
| | | | | | | | | | Change-Id: I69d15c8af9b6e5acde9d86e185395590369baab6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/devSergio Ahumada2015-02-224-12/+12
|\ \
| * | Merge remote-tracking branch 'origin/5.4' into devFrederik Gladhorn2015-02-134-12/+12
| |\| | | | | | | | | | Change-Id: I7db3f66a1ac98d32a206c288b53151ad0a249944
| | * Add the QtCore/ library prefix in public headersSergio Ahumada2015-02-124-12/+12
| | | | | | | | | | | | | | | Change-Id: I294756d2d98972db24bd7d7e2979a92d78c5e060 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | | Remove BlackBerry PlayBook support.Rafael Roquetto2015-02-183-370/+0
| | | | | | | | | | | | | | | Change-Id: Id1247f797873395c38251ba098bfa848a06f10ee Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
* | | Update copyright headersJani Heikkinen2015-02-17321-2226/+2170
|/ / | | | | | | | | | | | | | | | | 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>