qt:qtsensors.git
4 years agoDoc: Updated url variable in qdocconf files.
Jerome Pasion [Tue, 5 Nov 2013 12:33:20 +0000 (13:33 +0100)]
Doc: Updated url variable in qdocconf files.

In 5.2, the HTML output is in a flatter structure and when they are
hosted in qt-project.org/doc, the documentation will be found at
http://qt-project.org/doc/qt-$QT_VER

The url variable is used by projects outside of Qt 5 which need
to link to Qt 5 documentation, such as Qt Creator.

Task-number: QTBUG-34584
Change-Id: Id4428de7ea0a7a4f7dd7a28d76927195c61755ce
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
4 years agoDoc: review of QtSensors
Nico Vertriest [Tue, 24 Sep 2013 10:25:12 +0000 (12:25 +0200)]
Doc: review of QtSensors

Minor corrections in compatmap.qdoc

Task-number: QTBUG-32173
Change-Id: Ic4f881449e65c2d6889f0e217d251214997a8a56
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
4 years agoDoc: Clean up SensorGesture QML example
Topi Reinio [Wed, 9 Oct 2013 11:26:10 +0000 (13:26 +0200)]
Doc: Clean up SensorGesture QML example

Fix warnings, fix property names and strings shown in
the UI. Also touch the documentation and correct a
typo in the qdoc file name.

Task-number: QTBUG-33877
Change-Id: Ie790708ac4d1f8d72af03b52ee361d0bf3994adc
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
4 years agoUnambiguous example name
Andreas Holzammer [Thu, 31 Oct 2013 13:03:54 +0000 (14:03 +0100)]
Unambiguous example name

For the example a QML plugin with the same
name is created, which just differs in case.
Windows does not support case sensitive files/folders.
So QNX compile under windows fails.

Change-Id: I20283fd9ebb125475c5e7ba19a35a67569785c69
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
4 years agogrue example: Set qmldir.path correctly.
Dmitry Shachnev [Tue, 29 Oct 2013 17:12:30 +0000 (21:12 +0400)]
grue example: Set qmldir.path correctly.

It should be $$DESTPATH, not $$DESTDIR, otherwise the build will
install files to wrong locations like debian/tmp/build/buildd/...
when building Debian packages.

Change-Id: Iae1bd2d190dd1653f06d0f043f1b701b7cb46eb4
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
4 years agoBlackBerry: Disabled "returnGeoValues" feature
Bernd Weimer [Thu, 24 Oct 2013 08:19:04 +0000 (10:19 +0200)]
BlackBerry: Disabled "returnGeoValues" feature

Elimination of interference is not supported on BlackBerry, so
returnGeoValues property will be ignored.

Change-Id: I5c6e3a80ec18f9e0d349d3c4040bfb8067a72291
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
4 years agostatic linking: add classname to qmldir
Richard Moe Gustavsen [Tue, 22 Oct 2013 07:51:23 +0000 (09:51 +0200)]
static linking: add classname to qmldir

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>
4 years agomake sensorfw plugin handle the sensord restarting.
Lorn Potter [Sat, 12 Oct 2013 07:19:44 +0000 (17:19 +1000)]
make sensorfw plugin handle the sensord restarting.

 This way, clients that are connected will continue to receive updates
 after the sensord has restarted, without the need to restart the
 sensor.

Task-number: QTBUG-34050
Change-Id: I4a8fbca189764cf23a1453feae5c1fd9ed6911e7
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
4 years agoDoc: Removed QML version from \inqmlmodule and put it in \qmlmodule v5.2.0-beta1
Jerome Pasion [Wed, 25 Sep 2013 12:47:41 +0000 (14:47 +0200)]
Doc: Removed QML version from \inqmlmodule and put it in \qmlmodule

-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>
5 years agoMerge remote-tracking branch 'origin/stable' into dev v5.2.0-alpha1
Sergio Ahumada [Fri, 20 Sep 2013 16:11:45 +0000 (18:11 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I24286cf6c037f10fbbfb6c7e3c7145ebb38c01ed

5 years ago[Doc] Fix the SensorGlobal usage example old/5.1
Gatis Paeglis [Thu, 19 Sep 2013 12:31:16 +0000 (14:31 +0200)]
[Doc] Fix the SensorGlobal usage example

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>
5 years agoBlackBerry: Ensured that proper sensor.h file is used
Bernd Weimer [Mon, 9 Sep 2013 14:41:32 +0000 (16:41 +0200)]
BlackBerry: Ensured that proper sensor.h file is used

Change-Id: I746cbf971b88cdffcfc5d675d27d0dda5bac95ad
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoAndroid: Add missing sensors
Paul Olav Tvete [Wed, 18 Sep 2013 15:15:49 +0000 (17:15 +0200)]
Android: Add missing sensors

This adds Android backends for QAmbientTemperatureSensor, QPressureSensor
and QProximitySensor.

Task-number: QTBUG-30531
Change-Id: I8d97f62d007c886fcc8dd701e23f6a35a3cbd748
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Sergio Ahumada [Fri, 6 Sep 2013 12:33:04 +0000 (14:33 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ie5c68600ed2b7d6145497dcbceae5f320f7eea6f

5 years agoRemove the explicit core/gui explicit QT addition for the gestures example
Laszlo Papp [Fri, 6 Sep 2013 08:32:18 +0000 (09:32 +0100)]
Remove the explicit core/gui explicit QT addition for the gestures example

Change-Id: Ie3087e97815ee59df4af732ce3b663ad283966bf
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoDefine the sensor coordinate system unambiguously
Paul Olav Tvete [Tue, 6 Aug 2013 12:40:40 +0000 (14:40 +0200)]
Define the sensor coordinate system unambiguously

All illustrations in the documentation show devices with phone
form factors, i.e. portrait orientation. Some tablets have a native
landscape orientation. It is not clear from the documentation
if the sensor coordinate system should be relative to the portrait
orientation or the native orientation.

This change defines the native orientation as the canonical orientation.

Task-number: QTBUG-32144
Change-Id: I870cb3c9b5aec04f2ed8394a4407b53b888e82c3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoDoc: Update Grue Sensor example
Topi Reinio [Tue, 13 Aug 2013 12:40:13 +0000 (14:40 +0200)]
Doc: Update Grue Sensor example

Fix a number of issues with the example:
    - Add \omit to generated doc sections, we don't want
      qdoc to process these (not part of Qt docs)
    - Combine the 5 separate examples into a single \example
      and discuss each subproject in a subsection
    - Add example image to doc
    - Fix deployment/build target directories and import paths
    - Define a 'reading' property for the sensor to make it work
      on QtSensors 5.1
    - Fix the Grue QML application to avoid flicker from frequent
      updates.

Task-number: QTBUG-32881
Change-Id: I2785faead1baaf5b1ae9d05df3398e018e945418
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoRemove unnecessary dependency to qtjsbackend from sync.profile
Simon Hausmann [Tue, 13 Aug 2013 08:02:19 +0000 (10:02 +0200)]
Remove unnecessary dependency to qtjsbackend from sync.profile

Change-Id: I88413d1007744426dc7bd36d6986e05411d59a35
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 12 Aug 2013 10:42:03 +0000 (12:42 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I7a9c32e8314fe1f753e40464cc5fbd16895c3665

5 years agoMerge remote-tracking branch 'origin/release' into stable
Sergio Ahumada [Fri, 9 Aug 2013 20:39:08 +0000 (22:39 +0200)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Ie0fd1cdeb9cc4eba373852bf2087fcf229a7339c

5 years agoMerge branch 'stable' into dev
Sergio Ahumada [Mon, 5 Aug 2013 08:32:11 +0000 (10:32 +0200)]
Merge branch 'stable' into dev

Conflicts:
.qmake.conf

Change-Id: Ifed287670b09398ef659b9420c3e513a699a0944

5 years agoDoc: Setting \qtvariable in module page.
Jerome Pasion [Fri, 2 Aug 2013 12:07:14 +0000 (14:07 +0200)]
Doc: Setting \qtvariable in module page.

\qtvariable indicates the QT variable needed in .pro files.

Change-Id: Ib3f6def889dddd7c92d0dc943424124af4aa8b09
Reviewed-by: Martin Smith <martin.smith@digia.com>
5 years agoUpdated the example to use SVG content and Qt Quick controls. v5.1.1
Venu [Mon, 1 Jul 2013 13:14:00 +0000 (15:14 +0200)]
Updated the example to use SVG content and Qt Quick controls.

Using sensors module and svg content in a Qt Quick app has been
tricky so far as the C++ plug-in dependencies are not detected
automatically by creator. This change is intended to make the app
suitable for a tutorial explaining how to create a Qt Quick app
for Android.

Change-Id: I05b7413b1224e009ae739cf7a16181519cab7619
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
5 years agoadd gyroscope for sensorfw backend
Lorn Potter [Thu, 1 Aug 2013 03:30:21 +0000 (13:30 +1000)]
add gyroscope for sensorfw backend

Task-number: QTBUG-32754

Change-Id: I9037c20953d67584fdfeb4d0fabdfd73f919f14c
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
5 years agouse 9.80665 as standard gravity for calculations.
Lorn Potter [Wed, 31 Jul 2013 23:32:42 +0000 (09:32 +1000)]
use 9.80665 as standard gravity for calculations.

Task-number: QTBUG-32751

Change-Id: I65076fa41d5c6a4e716df96bc5156068c1bd0040
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoEnable the Grue sensor plugin no matter what other sensor plug-in is installed
Alex Blasche [Thu, 25 Jul 2013 10:53:03 +0000 (12:53 +0200)]
Enable the Grue sensor plugin no matter what other sensor plug-in is installed

If multiple plugins with the same key are installed only the first
one is used and any subsequent plugin with the same key is ignored.
This prevents the Grue example from working as it requires a Light
sensor and the Grue sensor. All other plug-ins use the "unused" key.

Change-Id: I3cb28d3ffec407fb27b4550521acf28bd9c7b073
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoMerge remote-tracking branch 'origin/release' into stable
Sergio Ahumada [Fri, 26 Jul 2013 19:52:31 +0000 (21:52 +0200)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I02b963a3905fd55b1fc8e1d2204ffaee584eaa56

5 years agoAdd changes-5.1.1 file
Sergio Ahumada [Mon, 22 Jul 2013 11:35:37 +0000 (13:35 +0200)]
Add changes-5.1.1 file

Change-Id: I6bcc56af5bd19e1e6a9c15719e310461bc8dc1fd
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoBump MODULE_VERSION to 5.1.2
Sergio Ahumada [Tue, 23 Jul 2013 10:08:54 +0000 (12:08 +0200)]
Bump MODULE_VERSION to 5.1.2

Change-Id: Ib467832043763d292bbe7d227e8d4a4966d74630
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
5 years agoUndefine near if it is already defined to prevent a build issue
Andy Shaw [Tue, 23 Jul 2013 07:27:57 +0000 (09:27 +0200)]
Undefine near if it is already defined to prevent a build issue

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>
5 years agoMerge branch 'stable' into dev
Sergio Ahumada [Fri, 12 Jul 2013 18:57:59 +0000 (20:57 +0200)]
Merge branch 'stable' into dev

Change-Id: Id44a93ddf8dc778f44e9684842a759d585558ee4

5 years agoInitialize active variable in doubletap gesture
Lorn Potter [Fri, 12 Jul 2013 02:47:38 +0000 (12:47 +1000)]
Initialize active variable in doubletap gesture

Fixes flakiness.

Change-Id: I6e8beaf5106c4dd1e26c3bf038ba9e394d0f080d
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
5 years agoMerge branch 'release' into stable
Sergio Ahumada [Wed, 3 Jul 2013 14:17:59 +0000 (16:17 +0200)]
Merge branch 'release' into stable

Change-Id: I08bb0d6a9d4b0dddf76f463c32b3a4efdd632f0d

5 years agoFreefall gesture needs to be initialized into plugin to be usable
Lorn Potter [Sat, 29 Jun 2013 21:16:47 +0000 (07:16 +1000)]
Freefall gesture needs to be initialized into plugin to be usable

This fixes the flaky unit test failures. It also adds freefall to
unit test.

Task-number: QTBUG-32108
Change-Id: Ia1ee852b1e57b937fd7368073e259a139da9a697
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoDoc: Setting navigation bar variables.
Jerome Pasion [Wed, 26 Jun 2013 08:35:03 +0000 (10:35 +0200)]
Doc: Setting navigation bar variables.

Change-Id: I3072c467f9e1d08d5e2869ebdb272d185e612f97
Reviewed-by: Martin Smith <martin.smith@digia.com>
5 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Tue, 25 Jun 2013 21:29:02 +0000 (23:29 +0200)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I451682790ba1949c150d4045baf9df0cd467d486

5 years agoFix loading of all sensorgesture plugins. v5.1.0 v5.1.0-rc2
Lorn Potter [Fri, 21 Jun 2013 22:18:48 +0000 (08:18 +1000)]
Fix loading of all sensorgesture plugins.

After the change in qtbase 732dcfe7, only the first
sensorgesture plugin was actually being loaded.
Since the FILE argument of Q_PLUGIN_METADATA is optional,
removing that and the json file fixes the following bugs:

QTBUG-31900
QTBUG-31901

Change-Id: I7c0b67605a8fe680c37639f08926140e137dbe66
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
5 years agoiOS: change magnetometer implementation to use Timer base polling
Richard Moe Gustavsen [Mon, 10 Jun 2013 11:17:53 +0000 (13:17 +0200)]
iOS: change magnetometer implementation to use Timer base polling

Ref change: 102bdf3

We need to change the implementation to use polling rather
than callback to achieve full performance together with
fine-grained QTimers.

Change-Id: Ic3bf978633c56175eeca90cad8ed764a0b1c9b0c
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoiOS: change gyro implementation to use Timer base polling
Richard Moe Gustavsen [Mon, 10 Jun 2013 10:33:08 +0000 (12:33 +0200)]
iOS: change gyro implementation to use Timer base polling

Ref change: 102bdf3

We need to change the implementation to use polling rather
than callback to achieve full performance together with
fine-grained QTimers.

Change-Id: I895418996b53432642d37279855167d815261d92
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoMerge branch 'stable' into dev
Sergio Ahumada [Fri, 7 Jun 2013 11:46:00 +0000 (13:46 +0200)]
Merge branch 'stable' into dev

Conflicts:
.qmake.conf
sync.profile

Change-Id: I0eaa022110b99fc5bc7cdf6304b5cda3ad3e8f8c

5 years agoMerge branch 'release' into stable
Sergio Ahumada [Thu, 6 Jun 2013 08:57:08 +0000 (10:57 +0200)]
Merge branch 'release' into stable

Change-Id: I589d4840a0f0cc16656033ab34fcce10b9a499cd

5 years agoDoc: Removed duplicated list in Qt Sensors Examples page. v5.1.0-rc1
Jerome Pasion [Wed, 5 Jun 2013 13:24:25 +0000 (15:24 +0200)]
Doc: Removed duplicated list in Qt Sensors Examples page.

\generatelist is not needed for group pages because QDoc will generate
the list already.

Change-Id: If04b07af292e4c05e4b6f933612027773837a6c3
Reviewed-by: Martin Smith <martin.smith@digia.com>
5 years agofix build in OBS, as well as fixes for API changes.
Lorn Potter [Sat, 1 Jun 2013 20:44:02 +0000 (06:44 +1000)]
fix build in OBS, as well as fixes for API changes.

Change-Id: I27eabe7c8b79e03d814deb541db5e7f0b5449099
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoiOS: change accelerometer to use QTimer for polling
Richard Moe Gustavsen [Thu, 30 May 2013 08:07:29 +0000 (10:07 +0200)]
iOS: change accelerometer to use QTimer for polling

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>
5 years agoFix warning by the compiler, probably caused by a bad conflict resolution
Thiago Macieira [Tue, 4 Jun 2013 18:38:57 +0000 (11:38 -0700)]
Fix warning by the compiler, probably caused by a bad conflict resolution

qshakerecognizer.cpp:161:28: error: expression result unused [-Werror,-Wunused-value]

The statement was unused, the last branch of an || that was removed in
fb06538f.

Change-Id: I4badb3e5f4272086d44004b9beaca330f8ed7ab6
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoBump MODULE_VERSION to 5.1.1
Sergio Ahumada [Tue, 28 May 2013 18:28:52 +0000 (20:28 +0200)]
Bump MODULE_VERSION to 5.1.1

Change-Id: Iac439fff68a414ffc75efb4195282c41678bcfa2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
5 years agoUpdate all plugins.qmltypes files
Liang Qi [Mon, 27 May 2013 11:36:37 +0000 (13:36 +0200)]
Update all plugins.qmltypes files

Task-number: QTBUG-31388

Change-Id: I7a1a0b692d49961d07ae174cb5c2a614295ec98b
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
5 years agoDoc: Fix errors in Qt Sensors QML example
Topi Reinio [Mon, 27 May 2013 08:49:16 +0000 (10:49 +0200)]
Doc: Fix errors in Qt Sensors QML example

This change fixes the errors in example QML code by replacing the
overuse of anchors with Column/Row components, and cleaning up by
refactoring reusable code into a new QML type.

Task-number: QTBUG-31076
Change-Id: Iade6f98d7db716848c44d4066aa23064929b32f2
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agosync.profile: Point dependencies to an empty string
Sergio Ahumada [Fri, 24 May 2013 20:28:34 +0000 (22:28 +0200)]
sync.profile: Point dependencies to an empty string

This means that we are going to use the same branch name for the
dependencies as the branch of the repository under test.

If we are testing the 'stable' branch, all dependencies will point
to the 'stable' branch as well.

Change-Id: Id7e1130333e71acca7120fc6dd99ae4152e48a86
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
5 years agoDoc: Removed landing page from the "technology-apis" group.
Jerome Pasion [Fri, 24 May 2013 08:42:19 +0000 (10:42 +0200)]
Doc: Removed landing page from the "technology-apis" group.

The group in qtdoc is removed because the new overviews on the landing
page replaced the group.

Change-Id: I2e266d8d41ff933c033711880d088fed8f0a8abd
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
5 years agoFix pkgconfig depends
Lorn Potter [Thu, 23 May 2013 19:57:06 +0000 (05:57 +1000)]
Fix pkgconfig depends

We call it sensord-qt5 now. Use this instead of the qt4 sensord

Change-Id: I54f9de52e572f0afbfef742cf0c84fc64f1469f0
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoFix MSVC-warning about comparing bool and qreal.
Friedemann Kleint [Thu, 23 May 2013 14:32:59 +0000 (16:32 +0200)]
Fix MSVC-warning about comparing bool and qreal.

Change-Id: I10ea0eb3f5bacebe0d72cdce4fac529957c64f2e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Thu, 23 May 2013 11:18:07 +0000 (13:18 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I497c153fe555fbfbbd5fbb40f65f614ee33b065d

5 years agoSensors examples: Use resource system for QML examples
Topi Reinio [Wed, 22 May 2013 12:45:49 +0000 (14:45 +0200)]
Sensors examples: Use resource system for QML examples

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>
5 years agoAdd module check to examples .pro-file.
Friedemann Kleint [Tue, 21 May 2013 15:13:12 +0000 (17:13 +0200)]
Add module check to examples .pro-file.

Task-number: QTBUG-31076

Change-Id: I345cb91f82262b64c2d414bec585e5a7ca724ce3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoadd a few more big changes to changes file.
Lorn Potter [Thu, 16 May 2013 19:21:39 +0000 (05:21 +1000)]
add a few more big changes to changes file.

Change-Id: I663cce2f5aff72661e2b35fca8320ed79cd0157f
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoAdd changes-5.1.0 file
Sergio Ahumada [Mon, 13 May 2013 18:29:56 +0000 (20:29 +0200)]
Add changes-5.1.0 file

Change-Id: I36870eb23fd0fe3de76642f29ba6509ba44dca44
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoRemove debug output.
Friedemann Kleint [Mon, 13 May 2013 09:55:24 +0000 (11:55 +0200)]
Remove debug output.

Task-number: QTBUG-31074

Change-Id: I7cb66ccbe74203e87e3bcc60400a8f7b2b2be0ed
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoadd a way to collect sensor dump in the format the autotests can use.
Lorn Potter [Sun, 18 Nov 2012 08:11:39 +0000 (18:11 +1000)]
add a way to collect sensor dump in the format the autotests can use.

Change-Id: Iec9be6e858aabd579ea61e48fd5b9d884c980fc3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoDocument that the QSensor constructor should not be used directly
Thomas McGuire [Mon, 6 May 2013 09:27:43 +0000 (11:27 +0200)]
Document that the QSensor constructor should not be used directly

Change-Id: I1907497b2bb3b1be65e98223e0337eef358743b6
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoAdd a private class to QSensorBackend v5.1.0-beta1
Thomas McGuire [Mon, 22 Apr 2013 11:33:49 +0000 (13:33 +0200)]
Add a private class to QSensorBackend

Change-Id: Ifaac09159420b6cca197614a1fa9df8b6a8692dc
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoBlackBerry: Fix for GeoValues support
Bernd Weimer [Fri, 3 May 2013 09:27:00 +0000 (11:27 +0200)]
BlackBerry: Fix for GeoValues support

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>
5 years agoMake it possible to bundle Android builds
Eskil Abrahamsen Blomfeldt [Thu, 2 May 2013 12:00:38 +0000 (14:00 +0200)]
Make it possible to bundle Android builds

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>
5 years agoFix some potential binary compatibility issues
Thomas McGuire [Mon, 22 Apr 2013 09:34:40 +0000 (11:34 +0200)]
Fix some potential binary compatibility issues

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>
5 years agoDoc: Define examples install path in .qdocconf
Topi Reinio [Fri, 3 May 2013 13:00:13 +0000 (15:00 +0200)]
Doc: Define examples install path in .qdocconf

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>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 29 Apr 2013 12:19:38 +0000 (14:19 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I4cfd0e2a2f108f5ecf79c56418c02928b041856e

5 years agoiOS: enable generic sensors
Richard Moe Gustavsen [Wed, 10 Apr 2013 08:05:07 +0000 (10:05 +0200)]
iOS: enable generic sensors

Change-Id: I400661cabd4839f8a4e0c2b648a8a62a161dc955
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoGeneric: set PLUGIN_CLASS_NAME to help static builds (iOS)
Richard Moe Gustavsen [Wed, 10 Apr 2013 08:09:40 +0000 (10:09 +0200)]
Generic: set PLUGIN_CLASS_NAME to help static builds (iOS)

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>
5 years agoQSensor: fix spelling in doc
Richard Moe Gustavsen [Tue, 9 Apr 2013 13:24:05 +0000 (15:24 +0200)]
QSensor: fix spelling in doc

Change-Id: Idcd84adc62015aa7986275b320f3bacf45c94635
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoiOS: implement proximity sensor
Richard Moe Gustavsen [Tue, 9 Apr 2013 09:16:03 +0000 (11:16 +0200)]
iOS: implement proximity sensor

Change-Id: Ia4c2dbe4f81ceda1600f9f642effbc3377cfa94d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoiOS: implement compass
Richard Moe Gustavsen [Mon, 8 Apr 2013 09:24:19 +0000 (11:24 +0200)]
iOS: implement compass

Change-Id: I639a472cd2dfca177282cb4961d589f11f924e36
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Tue, 16 Apr 2013 12:39:29 +0000 (14:39 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ia02497aafc94feba0381ffe8733cbc89f29fb412

5 years agoiOS: implement magnetometer
Richard Moe Gustavsen [Wed, 20 Mar 2013 11:50:04 +0000 (12:50 +0100)]
iOS: implement magnetometer

Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoiOS: remove unneeded void pointer casting in private headers
Richard Moe Gustavsen [Fri, 22 Mar 2013 08:39:55 +0000 (09:39 +0100)]
iOS: remove unneeded void pointer casting in private headers

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>
5 years agoiOS: add QPointer guard to accelerometer and gyro
Richard Moe Gustavsen [Thu, 21 Mar 2013 16:09:23 +0000 (17:09 +0100)]
iOS: add QPointer guard to accelerometer and gyro

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>
5 years agoiOS: refactor and simplify IOSAccelerometer code
Richard Moe Gustavsen [Thu, 21 Mar 2013 15:44:12 +0000 (16:44 +0100)]
iOS: refactor and simplify IOSAccelerometer code

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>
5 years agoRemove REVISION 1 from alwaysOn property.
Thomas McGuire [Wed, 10 Apr 2013 06:58:06 +0000 (08:58 +0200)]
Remove REVISION 1 from alwaysOn property.

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>
5 years agoRemove TODO comments
Thomas McGuire [Tue, 9 Apr 2013 14:02:03 +0000 (16:02 +0200)]
Remove TODO comments

With sensorfw we actually have a backend that uses these now.

Change-Id: Iba088dc356a54ae43f29e8b5f77349a9a98c4d09
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoAdd missing Q_REVISION(1) to new 5.1 signals
Thomas McGuire [Tue, 9 Apr 2013 14:00:38 +0000 (16:00 +0200)]
Add missing Q_REVISION(1) to new 5.1 signals

Change-Id: Ic98e6b4d9f4ac5c676d2183799a5a838c5085a70
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoiOS: remove unnecessary test for accelerometer available
Richard Moe Gustavsen [Tue, 19 Mar 2013 09:13:52 +0000 (10:13 +0100)]
iOS: remove unnecessary test for accelerometer available

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>
5 years agoiOS: set data rate on accelerometer before starting it
Richard Moe Gustavsen [Mon, 18 Mar 2013 14:23:29 +0000 (15:23 +0100)]
iOS: set data rate on accelerometer before starting it

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>
5 years agoiOS: bugfix accelerometer timestamp
Richard Moe Gustavsen [Mon, 18 Mar 2013 14:07:20 +0000 (15:07 +0100)]
iOS: bugfix accelerometer timestamp

Convert from NSTimeInterval to microseconds

Change-Id: I51fb3791aa72dcc7514c39820e4347a3c1d4039a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoiOS: implement gyroscope for iOS
Richard Moe Gustavsen [Thu, 14 Mar 2013 12:23:38 +0000 (13:23 +0100)]
iOS: implement gyroscope for iOS

Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
5 years agoiOS: implement magnetometer
Richard Moe Gustavsen [Wed, 20 Mar 2013 11:50:04 +0000 (12:50 +0100)]
iOS: implement magnetometer

Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoFixed manual sensor test
Bernd Weimer [Tue, 9 Apr 2013 09:03:53 +0000 (11:03 +0200)]
Fixed manual sensor test

Widgets module was missing in project file

Change-Id: I4b5ba34a35e6097231b134b967b03689ca71fa0d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoAdded temperature property to pressure sensor
Bernd Weimer [Tue, 2 Apr 2013 16:53:03 +0000 (18:53 +0200)]
Added temperature property to pressure sensor

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>
5 years agodoc: Removed the HTML template from the .qdocconf files
Laszlo Papp [Fri, 5 Apr 2013 17:43:05 +0000 (18:43 +0100)]
doc: Removed the HTML template from the .qdocconf files

qt-module-defaults.qdocconf already contains the HTML template.

Change-Id: I06218652147efeb1f86b34e0d52ae413987e4e87
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
5 years agoAndroid: Report correct timestamp value v5.1.0-alpha1
Paul Olav Tvete [Tue, 2 Apr 2013 15:04:34 +0000 (17:04 +0200)]
Android: Report correct timestamp value

Android uses nanoseconds for the timestamp while Qt uses
microseconds.

Change-Id: I1a6a4c2c3e8cfc950d795e00b7d7546869399f29
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
5 years agoFix warnings in qtsensors
Thiago Macieira [Tue, 2 Apr 2013 06:08:54 +0000 (23:08 -0700)]
Fix warnings in qtsensors

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>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Wed, 3 Apr 2013 12:59:37 +0000 (14:59 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I14f923883afe9f43282e449725f509e0688e597e

5 years agoInstall the jar file
BogDan Vatra [Fri, 29 Mar 2013 21:17:33 +0000 (23:17 +0200)]
Install the jar file

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>
5 years agoBlackBerry: Removed comment in pressure sensor backend
Bernd Weimer [Wed, 27 Mar 2013 13:17:30 +0000 (14:17 +0100)]
BlackBerry: Removed comment in pressure sensor backend

Verified pressure sensor and removed corresponding TODO comment.

Change-Id: I1ed08373f874db33e64c80fd784d5e1c95dd1f8e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
5 years agoUpdate module version to 5.2.0
Frederik Gladhorn [Wed, 27 Mar 2013 13:32:49 +0000 (14:32 +0100)]
Update module version to 5.2.0

Change-Id: I703e703fd1c8b76c101eb9f69d5aa81423e12044
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
5 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Wed, 27 Mar 2013 13:32:48 +0000 (14:32 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Id09708fc6096716d25f541ba55de2ada6f2d385d

5 years agosync.profile: Add qtxmlpatterns as a indirect dependency
Sergio Ahumada [Fri, 22 Mar 2013 14:33:36 +0000 (15:33 +0100)]
sync.profile: Add qtxmlpatterns as a indirect dependency

This seems to have been accidentally removed
by db4b4e29b9bd2875a69e8d3b53dc28f1748f60c9

Change-Id: I3a03cc3adc80e2795e5e4d56920752ceadedbcef
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
5 years agoiOS: remove unneeded void pointer casting in private headers
Richard Moe Gustavsen [Fri, 22 Mar 2013 08:39:55 +0000 (09:39 +0100)]
iOS: remove unneeded void pointer casting in private headers

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>
5 years agoiOS: add QPointer guard to accelerometer and gyro
Richard Moe Gustavsen [Thu, 21 Mar 2013 16:09:23 +0000 (17:09 +0100)]
iOS: add QPointer guard to accelerometer and gyro

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>
5 years agoiOS: refactor and simplify IOSAccelerometer code
Richard Moe Gustavsen [Thu, 21 Mar 2013 15:44:12 +0000 (16:44 +0100)]
iOS: refactor and simplify IOSAccelerometer code

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>
5 years agoiOS: remove unnecessary test for accelerometer available
Richard Moe Gustavsen [Tue, 19 Mar 2013 09:13:52 +0000 (10:13 +0100)]
iOS: remove unnecessary test for accelerometer available

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>
5 years agoiOS: set data rate on accelerometer before starting it
Richard Moe Gustavsen [Mon, 18 Mar 2013 14:23:29 +0000 (15:23 +0100)]
iOS: set data rate on accelerometer before starting it

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>