| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Ied2ceac07a5f9dd8a3331e1e2d407620450e138e
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I373a88ee3116d6ad9c389e762478742af38cb949
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
|
|
|
|
| |
Change-Id: Ia7d14a7d354fe95e038416e9883a507dd7ccba81
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
|
|
| |
As well as from documentation and usage of Sensors.conf location
Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
|
|
|
|
| |
Change-Id: I5b488a6317af8cef1f31cf03249d115cd424b515
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
|
|
|
|
| |
Change-Id: I1401314208bb89ba46ed3f18393b1f446682cd93
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: If3a3719f2bf2edc4c2230abf968f836c28eb1efa
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
|
|
|
| |
This appears to be implicit. Now the property documentation is built
correctly.
Change-Id: I3998582fdeabf751a612c379df69f5eb41b9419d
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: I7f35e623f2441871f230688fa3494850f4bdad6d
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: Ie0b8756f3b538b4263298bec9f293f62bf20568c
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: I2be34f3af34ff7accc4ba9c0d8157633e25ef785
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: Ia5c93a26ce2d56d0844aea1c0c5ddd1be2ae3c5a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
|
|
|
|
|
| |
Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
|
|
|
|
|
|
|
|
| |
The global files now live in qtbase only, and are made available to the
other modules via the $QT_INSTALL_DOCS variable.
Change-Id: I4f77194f9c1e0c65636430ac22de3241b49d4641
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
|
|
|
|
|
| |
Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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 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>
|
|
|
|
|
| |
Change-Id: Ieaa07fcaf28f754c14774dee61697624d33cabf8
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I98306597742599532bf01d339f8c7807437f59dc
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Otherwise it is easy to forget about this
Change-Id: Ib1da49c136f3e9cf99f68dd283143fe2fc0eb930
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
| |
This comment was only intended to be read after make_sensors.pl ran.
Change-Id: If327aa583848172b267c541db861de2e1114c301
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
| |
Add:
- Q_DECL_OVERRIDE
- QT_BEGIN/END_HEADER
- QT_MODULE
Change-Id: I89da05d84612aaa804298cbdd8575d2135a125fd
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
| |
Use the new, simpler QT_STATIC macro.
Change-Id: I20bad6db7a77227d7d4213e43b1350468f44b9a2
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- load(qt_module) => load(qt_build_config)
- remove:
- CONFIG+=module (obsolete)
- code relating to module version headers (automated now)
- %mastercontent assignment (automated now)
- QT_BUILD_*_LIB defines (automated now)
- pointless QPRO_PWD assignments
- pointless DEFINES+=QT_MAKEDLL
- pointless include and depend paths
Change-Id: I2c5062c238c6948f99d72f7c5544095cd30c988d
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
|
|
|
|
|
|
| |
Change-Id: I89ccb6cd05e58a1790480d5ea9c613ace4f42373
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
|
|
|
|
|
| |
Change-Id: I35eb858cad41167ac6bbbf17e48571965f34f8ca
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
| |
Change-Id: I3b654018a9d29719e56b928205f441e193fc01a3
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
| |
Change-Id: Ie6124f99e1fbbbccda47ed144ddd565dd0cc4694
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Under normal conditions, dataRate is set/checked like so.
QSensor::setDataRate records the data rate. It can't be evaluated because we have
no backend. Upon getting a backend, we are notified of the available data rates.
Re-evaluate the previously-set dataRate after connecting to a backend.
The problem is that connectToBackend did not save the dataRate value until after
setDataRates was called and setDataRates was clobbering the dataRate property.
Two fixes will be made. connectToBackend will save the dataRate before creating
the backend and setDataRates will stop clobbering dataRate.
Also, setDataRates is now banned from being called outside of the constructor
because otherwise an available data rate may disappear during use.
Add a test case to verify that a previously-set data rate is not clobbered.
Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
| |
It's probably not very likely but during app shutdown, the
Q_GLOBAL_STATIC used in sensor gestures will start returning 0. Check
for this to avoid the chance of a crash.
Change-Id: I4b538ac9b9535bd9439a897d4eab51211c523e33
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
| |
It's probably not very likely but during app shutdown, the
Q_GLOBAL_STATIC used in sensors will start returning 0. Check for this
to avoid the chance of a crash.
Change-Id: If2c235b158c36339e35e40074a5b33dbe21a7726
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
|
|
|
|
|
|
|
| |
remove started and stopped signals and call the manager directly
Change-Id: If2c05576e858c196ab3ba3d786574afbf894ca4b
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
| |
wrap with QLatin1Sring
Change-Id: Ifc89212e95b990e45f4c38e8e23e292e5f8cc604
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
| |
Change-Id: I7f49f14d0546a2a59a26777c6f8fa083ec29e0ba
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: Ib1f65462a9203534538a18fdc6374fb125cd6f3d
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
| |
The emulator may be missing (eg. when running unit/system tests) so
handle this case without crashing.
Also fix a missing QLatin1String() around a bare string.
Change-Id: Ibeeb0078c1ae12cec4bf8e3f4e81b3a4c72347da
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
| |
qFree has been deprecated.
Change-Id: Ie64c791451cb3722183f2ea4d27b9b8e87a4f629
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
| |
code from the plugin has been moved into the manager so that every other
plugin can be triggered by the emluator.
Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|