| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the docs (CMMotionManager class reference) there are
two ways of interacting with the accelerometer; Either through the
callback API (NSOperationQueue), or peridic sampling (polling).
Our first implementation of IOSAcceleometer used the former
technique, which turns out to have bad performance when using the
sensor together with a fine-grained QTimer. And this case is
pretty common when using sensors together with e.g QML.
Reading through the docs more carefully, they recommend using the
polling technique when creating games instead since the
NSOperationQueue introduces some overhead. So this patch does
that, change the implementation to use QTimer based polling. And
this solves the performance issues found.
Change-Id: Ifde0d2292302467afb8db90a954ef45f3238350e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
|\
| |
| |
| | |
Change-Id: I497c153fe555fbfbbd5fbb40f65f614ee33b065d
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Adds resources (.qml, .js, images, etc.) used in QML examples as
Qt resources. This enables running the examples successfully when
shadow building, without copying the files around.
Task-number: QTBUG-31076
Change-Id: I0f3352cffdc334f6139aac60acd3345710516d65
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| | |
Task-number: QTBUG-31076
Change-Id: I345cb91f82262b64c2d414bec585e5a7ca724ce3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I663cce2f5aff72661e2b35fca8320ed79cd0157f
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I36870eb23fd0fe3de76642f29ba6509ba44dca44
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| | |
Task-number: QTBUG-31074
Change-Id: I7cb66ccbe74203e87e3bcc60400a8f7b2b2be0ed
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I1907497b2bb3b1be65e98223e0337eef358743b6
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ifaac09159420b6cca197614a1fa9df8b6a8692dc
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Generic QSensor("QMagnetometer") crashed, because of a null pointer access.
Fixed by disabling geo values support for generic magnetometer sensors.
Change-Id: Ie3e654df10f325ff42cd3a08c3108e9b7a84604f
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
Change-Id: Iec9be6e858aabd579ea61e48fd5b9d884c980fc3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
|\|
| |
| |
| | |
Change-Id: I4cfd0e2a2f108f5ecf79c56418c02928b041856e
|
| |
| |
| |
| |
| | |
Change-Id: I400661cabd4839f8a4e0c2b648a8a62a161dc955
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
qmake will parse QTPLUGIN when building static apps, and create
a stand-alone cpp file that adds the needed Q_IMPORT_PLUGIN
lines. But for this to work, PLUGIN_CLASS_NAME needs to be set.
Change-Id: Id92d78f3d77c3ce0d59fd27eec1df3271a947d51
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
|
| |
| |
| |
| |
| | |
Change-Id: Idcd84adc62015aa7986275b320f3bacf45c94635
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ia4c2dbe4f81ceda1600f9f642effbc3377cfa94d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I639a472cd2dfca177282cb4961d589f11f924e36
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
|\|
| |
| |
| | |
Change-Id: Ia02497aafc94feba0381ffe8733cbc89f29fb412
|
| |
| |
| |
| |
| | |
Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The headers in use for the sensor backend are private, and should
never be directly included in any .cpp files. As such, we don't
need to be careful using obj-c features in the header files.
Change-Id: If16a84c88a7e7afc45afe00e668e4582337e4907
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since we process data from the sensors using a callback
queued to the application operation queue, we need to check
that the qt sensor is still alive before accessing it.
Change-Id: I697d72f94aedec34b125006d6405428e282bfc0d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The code as it stood made use of an extra obj-c class
to listen for sensor readings. This is not needed with
the block (lambda) API used by CMMotionManager.
This will also make IOSGyroscope and (soon) IOSMagnetometer
follow the same code pattern.
Change-Id: If945f8616f4cdde98b31382fcd9c555c2b490c4a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
With sensorfw we actually have a backend that uses these now.
Change-Id: Iba088dc356a54ae43f29e8b5f77349a9a98c4d09
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| | |
Change-Id: Ic98e6b4d9f4ac5c676d2183799a5a838c5085a70
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The accelerometer is always available, so no need to check for
this.
Change-Id: I79411ff023c4350c5b31d4fad048484db2b2fe43
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Respect user data rate settings by applying the rate just
before the sensor starts
Change-Id: I3da37497c574cbf94d57699c941ce2bf3b54373c
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Convert from NSTimeInterval to microseconds
Change-Id: I51fb3791aa72dcc7514c39820e4347a3c1d4039a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| | |
Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|
| |
| |
| |
| |
| |
| |
| | |
qt-module-defaults.qdocconf already contains the HTML template.
Change-Id: I06218652147efeb1f86b34e0d52ae413987e4e87
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Android uses nanoseconds for the timestamp while Qt uses
microseconds.
Change-Id: I1a6a4c2c3e8cfc950d795e00b7d7546869399f29
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| | |
Widgets module was missing in project file
Change-Id: I4b5ba34a35e6097231b134b967b03689ca71fa0d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\|
| |
| |
| | |
Change-Id: I14f923883afe9f43282e449725f509e0688e597e
|
| |
| |
| |
| |
| |
| |
| | |
Change-Id: I7bb84492336a69fc5389f3a26f026f7cb91c7052
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
|
| |
| |
| |
| |
| |
| |
| | |
Verified pressure sensor and removed corresponding TODO comment.
Change-Id: I1ed08373f874db33e64c80fd784d5e1c95dd1f8e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
|
| |
| |
| |
| |
| | |
Change-Id: I703e703fd1c8b76c101eb9f69d5aa81423e12044
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
|
|\|
| |
| |
| | |
Change-Id: Id09708fc6096716d25f541ba55de2ada6f2d385d
|
| |
| |
| |
| |
| |
| |
| |
| | |
This seems to have been accidentally removed
by db4b4e29b9bd2875a69e8d3b53dc28f1748f60c9
Change-Id: I3a03cc3adc80e2795e5e4d56920752ceadedbcef
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
|
| |\
| | |
| | |
| | |
| | |
| | | |
This starts Qt 5.1 release cycle
Change-Id: Idce0f9b94f9e585abfb6903f554500a06f4f8aaa
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows us to remove hardcoded depends information.
Change-Id: Id094414d27c1da9b957730b0101d920d561d396d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The headers in use for the sensor backend are private, and should
never be directly included in any .cpp files. As such, we don't
need to be careful using obj-c features in the header files.
Change-Id: If16a84c88a7e7afc45afe00e668e4582337e4907
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since we process data from the sensors using a callback
queued to the application operation queue, we need to check
that the qt sensor is still alive before accessing it.
Change-Id: I697d72f94aedec34b125006d6405428e282bfc0d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The code as it stood made use of an extra obj-c class
to listen for sensor readings. This is not needed with
the block (lambda) API used by CMMotionManager.
This will also make IOSGyroscope and (soon) IOSMagnetometer
follow the same code pattern.
Change-Id: If945f8616f4cdde98b31382fcd9c555c2b490c4a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The accelerometer is always available, so no need to check for
this.
Change-Id: I79411ff023c4350c5b31d4fad048484db2b2fe43
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
|