summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Use QDeadlineTimer to greatly simplify dummy plugin implementationJake Petroules2017-07-111-77/+2
| | | | | Change-Id: Ibda65cd63dcf277730044da04ee30b68513f95ee Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Doc: Update the compatibility table to show Universal Windows PlatformLeena Miettinen2017-06-021-22/+1
| | | | | | | | | | | ... instead of Windows 8/RT and Windows Phone Task-number: QTBUG-60607 Change-Id: Ia0ca4fcba07e52d712dc176199aa6433c04e5aca Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix licensingJani Heikkinen2017-05-1036-500/+536
| | | | | | | | | | | | | | | | | - Remove unused old license files - Update BSD and FDL license headers - Unify licensing * Examples are nowdays licensed under BSD, update correct license header to there * Tools and tests are nowdays licensed under GPL-EXCEPT, update correct license header to those * Src is nowdays licensed under LGPL, update correct license header to there Task-number: QTBUG-57147 Change-Id: I5d9d7a3bc5e360f01ec73fb6a2a873f3173b5918 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: fix warnings about parametersv5.9.0-beta4v5.9.0-beta3v5.9.0-beta2v5.9.0-beta1Nico Vertriest2017-03-292-2/+2
| | | | | | | | | qaccelerometer.cpp:271: undocumented parameter 'accelerationMode' in QAccelerometer::accelerationModeChanged() qsensor.cpp:546: undocumented parameter 'skipDuplicates' in QSensor::skipDuplicatesChanged() Change-Id: I31d841a8e7ecce6ae875cb92414866398d8653c4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Fix QML Sensor API registrations for 5.9Alex Blasche2017-03-162-11/+4
| | | | | | | | The 5.7 registration is not needed and the comment was wrong as 5.9 is the first API version with truly new QML API. Change-Id: I87f1dc040df4eda1784420a7a9bf37a520dfd6f5 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Update plugins.qmltypes for Qt Sensors QML APIAlex Blasche2017-03-011-2/+26
| | | | | | | This updates the types to Qt 5.9. Change-Id: Ice1fd7011eb0ce9bf4ec22e366d0eb7f6678bf75 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-12114-324/+418
|\ | | | | | | | | | | | | Conflicts: src/plugins/sensors/ios/ios.pro Change-Id: I8d9ca692713c8ba5d8c243371474b0e61630b05e
| * Replace Q_DECL_OVERRIDE by overrideAlexander Volkov2016-12-0299-279/+279
| | | | | | | | | | | | | | 'override' keyword can be used directly since Qt 5.7. Change-Id: Ibf0fc590f7e247a310a833a22ece700ec75199bb Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-264-5/+25
| |\ | | | | | | | | | Change-Id: I912756c6bbecf7c55acd60d136ea6ce490118ebb
| | * Merge remote-tracking branch 'origin/5.6' into 5.75.7Liang Qi2016-11-242-3/+23
| | |\ | | | | | | | | | | | | Change-Id: I77e9c7f825716af5ab4a1c04551f89e22099696e
| | | * Fix broken link in QMagnetometerReadingChristian Strømme2016-11-221-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The link, which describes how to calibrate the magnetometer sensor, is no longer available. As a replacement we now provide a generic approach for calibrating, and recommend that the user checks their device's documentation for more information. Change-Id: I04de5fba76b88fb7417d180ffe1f2c8c249610e5 Task-number: QTBUG-57184 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| | | * Android: Fix incorrect accuracy levelsChristian Strømme2016-11-221-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android reports accuracy in four different levels (0, 1, 2 and 3), these values were used directly in Qt, so the reported values would be outside Qt documented range, which is a floating point number between 0 and 1. Task-number: QTBUG-57184 Change-Id: I912a76bffd3e205689103b0352ea4c480d660d63 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| | * | Fix lux value in sensorfw backendLorn Potter2016-11-142-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make light sensor value consistent with timestamp Change-Id: If6d5f15e2c645e86852a5b66cf0894a1e2ca3f1c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | | Port qtsensors to the new configure frameworkJake Petroules2016-11-074-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't invoke pkg-config at build time, automatically check for sensorfw and compile the correct plugin if found. Change-Id: I30dcd41cdebd7cf082cec66f3122c24fbab5c893 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
| * | | Port the iOS sensors plugin to the other UIKit platformsv5.8.0-beta1Jake Petroules2016-10-0512-31/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | watchOS supports accelerometer, gyroscope, and magnetometer. tvOS supports only the proximity sensor. No sensors are available on macOS yet, but the plugin is still built there because many of the underlying APIs are available cross platform and so some macOS sensors can appear here in the future. Change-Id: I1668d81f09c745e60c1906be621a74f969841566 Reviewed-by: Mike Krus <mike.krus@kdab.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
* | | | [ChangeLog][QtSensors][QSensor] Add new sensor: lidsensorLorn Potter2016-11-2114-7/+770
| | | | | | | | | | | | | | | | | | | | Change-Id: I57123eed34ee4618f1cba643c2ce49c8c621a6cd Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | | | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-09-2110-17/+72
|\| | | | | | | | | | | | | | | Change-Id: Iaeb7c9f62b50d68e0cedb95c523aebcceb9128c0
| * | | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-09-199-16/+71
| |\| | | | | | | | | | | | | | Change-Id: I35021aba57d8acc6b6e27e9800c6a244cb0e99da
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-09-179-16/+71
| | |\| | | | | | | | | | | | | Change-Id: I14345192d06a8a0ac9000feab6daea0f11b41f72
| | | * 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>
| * | | Fix loading of QML pluginsv5.8.0-alpha1Simon Hausmann2016-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 709f6370884b110def2e4665df8fa7bbf5fae734 the plugin loader is strict about requiring the correct interface id, to avoid loading unrelated plugins in the loader thread (which they may not be prepared to do). Change-Id: I84e4d927489f9a14615db399b560af4b352bf045 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | | QHumiditySensor will be added by Qt 5.9Alex Blasche2016-08-313-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][General][QHumiditySensor] Added QHumiditySensor sensor API. Change-Id: I6dcac53d75ec427fd585de082f4e3a5adb2ebde2 Reviewed-by: Lorn Potter <lorn.potter@canonical.com> Reviewed-by: Liang Qi <liang.qi@qt.io>
* | | | Add QHumiditySensorLorn Potter2016-08-277-3/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-53635 Change-Id: I089a793de1c7f7b7224aa1bb6772b6e54a44237c Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | | Fix iOS sensor plugin linking as shared libraryJake Petroules2016-08-231-1/+1
|/ / / | | | | | | | | | | | | | | | | | | Static linking was hiding the Foundation.framework dependency. Change-Id: I7c038488196d31d18c5174020c69dd03f15fa6f3 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-0212-17/+23
|\| | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I4be6cbe9e4ac981f46b3c45d271cac5c7fc677cb
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-014-7/+13
| |\| | | | | | | | | | Change-Id: I53d801a88bda3a8b8519b6002e1d37053c03e103
| | * 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>
| * | This module doesn't need an Activity to work, a Context object is enoughBogDan Vatra2016-07-261-3/+3
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-54506 Change-Id: I83576e79f12556479a43aac95123edcacd50c63c Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| * | Use QDateTime::currentMSecsSinceEpoch() instead of currentDateTimeThiago Macieira2016-06-277-7/+7
| | | | | | | | | | | | | | | | | | | | | More efficient if all you want is the number of seconds. Change-Id: Ib57b52598e2f452985e9fffd145a371003ede342 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | | Retry failed sensor start once DBus service becomes availableJoona Petrell2016-07-282-3/+10
|/ / | | | | | | | | | | | | | | | | When sensorfw is restarting/recovering DBus service is momentarily not available. Give it another change once the service becomes registered. Change-Id: I6fd3e5985ac60cfffbc84ff86aabe9cebe110ab6 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-191-1/+1
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I6c75a1a2f39fc3490087c1bad07325c79b0c79d2
| * 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>
* | 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.7Liang Qi2016-03-0736-79/+78
|\| | | | | | | | | | | | | Conflicts: src/sensors/doc/src/compatmap.qdoc Change-Id: I7bd464cbd506f630798091fef3896050ade7b3f8
| * 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>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-alpha1Liang Qi2016-02-1912-106/+161
|\| | | | | | | | | | | | | | | 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>
| * 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>