qt:qtsensors.git
3 years agoaccelbubble: avoid updating position if NaN.
Fawzi Mohamed [Fri, 11 Apr 2014 10:08:08 +0000 (12:08 +0200)]
accelbubble: avoid updating position if NaN.

Invalid sensor data is NaN, and should be ignored.

Change-Id: I6436bdd494b3d167121bd8ee80f81c031e60743e
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
3 years agoAndroid, Fix generic access to QAccelerometer
Andrew Inwood [Tue, 1 Apr 2014 17:40:08 +0000 (13:40 -0400)]
Android, Fix generic access to QAccelerometer

Generic access to QAccelerometer through QSensor was broken by my
previous change: 971fc95eca1d9db93aa4bdb75793dfe83e4a97db
When using a QSensor* to access the accelerometer, the qobject_cast
would fail, and return 0. I fix this by defaulting the accelerationMode
to Combined when a QSensor* is used.

Change-Id: If8389808a416807b72709a13ca315aa23bbf94a0
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoadd PLUGIN_CLASS_NAME declarations to plugin projects
Oswald Buddenhagen [Mon, 7 Apr 2014 15:32:24 +0000 (17:32 +0200)]
add PLUGIN_CLASS_NAME declarations to plugin projects

needed for automatic static linking (and later deployment).
the gesture plugins are excluded from the automation based on the
assumption that they are usually not needed.
the example and the test plugin are also excluded for obvious reasons.

Change-Id: I7645aa0daf216ce430989e13d4380dbe6dd2bbd1
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
3 years agoAccelbubble example only really works with a locked UI to portrait
Alex Blasche [Tue, 8 Apr 2014 12:17:43 +0000 (14:17 +0200)]
Accelbubble example only really works with a locked UI to portrait

On Android we have to do that via a custom AndroidManifest.

Change-Id: If436bdd494b3d167121bd8ee80f81c031a81f5d5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
3 years agoBlackBerry: update plugin key
Andrew Inwood [Thu, 3 Apr 2014 14:43:21 +0000 (10:43 -0400)]
BlackBerry: update plugin key

The plugin key for both the Generic backend and the BlackBerry backend
were set to "notused". This ultimately caused the Generic backend not
to be loaded, which is why QTiltSensor wasn't being exposed. The duplicate
keys caused a collision in a QMap in QFactoryLoader, making it look
like the generic backend had been created, when it hadn't.

Tested on a BlackBerry Z10.

Change-Id: Ie5e40586751e7c3b9683a94a39b07efd4fc7fc82
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
3 years agoSimplify building of simulator based code
Alex Blasche [Fri, 4 Apr 2014 08:41:06 +0000 (10:41 +0200)]
Simplify building of simulator based code

There is no need for the CONFIG+=simulator logic anymore.
qtHaveModule() is an automatic way of doing the same.

Change-Id: Ibe87abb93e036a82fae3a752d9886c58ccebeec1
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
3 years agoMake it obvious what platforms are supported by QtSensors.
Alex Blasche [Tue, 25 Mar 2014 10:04:11 +0000 (11:04 +0100)]
Make it obvious what platforms are supported by QtSensors.

Also, this brings the front page layout somewhat further
in line with qtlocation & qtconnectivity API docs.

Change-Id: I5e54ae388892dcb2a806c4775828abcdc81eb79d
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
3 years agoImplement QAccelerometer accelerationMode v5.3.0-beta1
Andrew Inwood [Thu, 13 Mar 2014 22:58:15 +0000 (18:58 -0400)]
Implement QAccelerometer accelerationMode

The Qt API does not expose Linear Accel and Gravity as separate sensor types,
they are different versions of QAccelerometer, accessed by modifying the
accelerationMode property. The possible values are Combined, User, and Gravity, which
correspond to Acceleration, Linear Acceleration, and Gravity respectively. When
constructing the accelerometer backend, the accelerationMode must be queried. The
backend must also connect to the accelerationModeChanged signal from the QAccelerometer.

I think that the existing implementation of QSensors on Android assumes that there is a
one-to-one correspondence between QSensors and AndroidSensorTypes. To fix this assumption,
I promoted the m_type attribute of androidcommonsensor.h from private to protected so
that a sensor backend can update the Android sensor being used.

Task-number: QTBUG-30531
Change-Id: I842d2485109542f74731d179e2720ea55fa248cc
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoDoc: Append handler names to \qmlsignal documentation
Sze Howe Koh [Sat, 15 Mar 2014 02:55:59 +0000 (10:55 +0800)]
Doc: Append handler names to \qmlsignal documentation

Change-Id: I4754a36bd6977cc2bc83a3fee58fb5ce6d2c2c84
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
3 years agoRemove unused and unlinked qdocconf file from the project.
Jędrzej Nowacki [Fri, 7 Mar 2014 11:43:16 +0000 (12:43 +0100)]
Remove unused and unlinked qdocconf file from the project.

Change-Id: I24ba7ae438d4763ca065d88147ff0a023c0ce85c
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoBlackBerry: Update threshold for close detection
Andrew Inwood [Mon, 10 Mar 2014 17:58:58 +0000 (13:58 -0400)]
BlackBerry: Update threshold for close detection

The current algorithm for close detection in QProximitySensor will not
work for sensors whose output is not binary (ie, close/far). The new
algorithm will use the threshold of 8cm when the output is not binary.

Change-Id: I2173e9afae0a2d29434e092e1afc09d1c6f5647c
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
3 years agoFix the examples so they can be deployed on Android
Andy Shaw [Fri, 28 Feb 2014 12:54:18 +0000 (13:54 +0100)]
Fix the examples so they can be deployed on Android

Change-Id: I8d3b0c84091cf7743164c083318e0a115e948d1c
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
3 years agoFix some typos in comments and documentation
Sergio Ahumada [Mon, 3 Mar 2014 21:59:27 +0000 (22:59 +0100)]
Fix some typos in comments and documentation

Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
3 years agoUpdate QML plug-in interfaces for Qt 5.3 release
Alex Blasche [Wed, 26 Feb 2014 08:54:49 +0000 (09:54 +0100)]
Update QML plug-in interfaces for Qt 5.3 release

Change-Id: If01a988c151ec696c8d02ca7c470d7e97a593b40
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoInitial sensors backend for WinRT/Windows Phone v5.3.0-alpha1
Andrew Knight [Sat, 15 Feb 2014 07:44:41 +0000 (09:44 +0200)]
Initial sensors backend for WinRT/Windows Phone

This provides the sensor plugin with support for accelerometer,
gyroscope, rotation sensor, orientation sensor, compass, and
ambient light sensor.

Change-Id: Ic91a6cef98e4011858552c5cd6407b494579fe17
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
3 years agoNormalize signal & slot signatures in connection
Thiago Macieira [Sun, 2 Feb 2014 22:09:51 +0000 (14:09 -0800)]
Normalize signal & slot signatures in connection

Profiling shows Qt Creator spends 2% of its load time normalizing

Change-Id: I462d0e0b603ab644e57c5b804015508abeebdc6e
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoCompile fix for WinRT
Maurice Kalinowski [Tue, 28 Jan 2014 11:55:19 +0000 (12:55 +0100)]
Compile fix for WinRT

Change-Id: Ifc7b86fa4d40dd051399999ad998b0750183d501
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
3 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Fri, 17 Jan 2014 16:25:22 +0000 (17:25 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
.qmake.conf

Change-Id: Ie9b09b93307606f8960df4d212e7a08c1a08c0b5

3 years agoUse correct method signature for slots. old/5.2
Michael Brasser [Thu, 16 Jan 2014 15:52:46 +0000 (09:52 -0600)]
Use correct method signature for slots.

Change-Id: I09b5df218ad22afefe8a615c80585aa3fb46006f
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
3 years agoBump MODULE_VERSION to 5.2.2
Sergio Ahumada [Wed, 15 Jan 2014 21:59:36 +0000 (22:59 +0100)]
Bump MODULE_VERSION to 5.2.2

Change-Id: Ic173a32836639e664e8349b28b101ee26a45ff78
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
3 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 16 Dec 2013 15:23:02 +0000 (16:23 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I84535e988c19639c86f8f4837cc8fdb882f3c505

4 years agoFix code snippet in Qt Sensors QML Types documentation. v5.2.1
Mitch Curtis [Thu, 12 Dec 2013 15:58:37 +0000 (16:58 +0100)]
Fix code snippet in Qt Sensors QML Types documentation.

Change-Id: I5639fb872b8e41cc5c5b5968cf1ddf7e247961e2
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
4 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Thu, 12 Dec 2013 17:02:47 +0000 (18:02 +0100)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I61deffeb7b61a4157b9ecb77de35f08d47c4e9bd

4 years agoUpdate QtSensor changelog for 5.2 v5.2.0
Alex Blasche [Thu, 5 Dec 2013 12:55:35 +0000 (13:55 +0100)]
Update QtSensor changelog for 5.2

Change-Id: I22dbe4447c14c48bfc812cc8fb5543d5f0fa872f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
4 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Fri, 29 Nov 2013 15:05:31 +0000 (16:05 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
.qmake.conf

Change-Id: I849cef727ec7cc88f9dccf5c600cbd59de982e7c

4 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Tue, 26 Nov 2013 09:54:31 +0000 (10:54 +0100)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I11d540f43baa69f9e857dd793666c1008b217956

4 years agoBump MODULE_VERSION to 5.2.1
Sergio Ahumada [Mon, 25 Nov 2013 11:49:19 +0000 (12:49 +0100)]
Bump MODULE_VERSION to 5.2.1

Change-Id: I5082d09607f08c4daad72a8530f7f76feac397fa
Reviewed-by: Matti Paaso <matti.paaso@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
4 years agoQML examples: Avoid using release/debug output subdirectory v5.2.0-rc1
Topi Reinio [Wed, 20 Nov 2013 12:55:23 +0000 (13:55 +0100)]
QML examples: Avoid using release/debug output subdirectory

Qt Sensors examples that include additional QML modules fail
to run on Windows, because the application located under a
debug or release subdirectory does not see the module import
path.

This change fixes the issue by adjusting examples' DESTDIR
on Windows builds.

Task-number: QTBUG-33875
Change-Id: Iab8ebc1acd80cf4fe88a7a35b44c42f767da5ccf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
4 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Wed, 20 Nov 2013 15:44:45 +0000 (16:44 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ic6de4c970ff0cb3d5d1b8b6eff4ee020ba485d99

4 years agoMake QtSensors use Q_DECL_OVERRIDE
Samuel Gaist [Mon, 18 Nov 2013 22:07:09 +0000 (23:07 +0100)]
Make QtSensors use Q_DECL_OVERRIDE

This patch aims to make QtSensors uses Q_DECL_OVERRIDE uniformly across
the module

Task-number: QTBUG-27392
Change-Id: I5f814f93307159175f92e29a9990587c03cce96f
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
4 years agoDoc: Update Sensor Explorer example
Topi Reinio [Wed, 28 Aug 2013 09:26:38 +0000 (11:26 +0200)]
Doc: Update Sensor Explorer example

Following changes are made to the example
    - Use of Qt Quick Controls / TableView to present the sensor
      information, reducing the example to a single QML file
    - Updated launcher main.cpp for the QML example
    - Remove separate example doc for the import subproject
    - Various fixes to example doc, add a screenshot
    - Ensure import module + qmldir are built/deployed to
      correct location

Task-number: QTBUG-32881
Task-number: QTBUG-33875
Change-Id: I0ed7c7ebc916fcad6da5e3c66d81be8f348a93e1
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
4 years agoMerge remote-tracking branch 'origin/stable' into dev
Sergio Ahumada [Fri, 8 Nov 2013 17:18:19 +0000 (18:18 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ie5df603a69a8cf2c15f6a6137fcf3edd00d62523

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 agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Thu, 24 Oct 2013 10:56:51 +0000 (12:56 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I78c9a02406695ce145b93a46cfa60961e40fc2dc

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 agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 30 Sep 2013 21:10:28 +0000 (23:10 +0200)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I640479e743c2707eff3129e94726989330ea3148

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>
4 years agoBump qtsensors version to 5.3.0
Thiago Macieira [Mon, 23 Sep 2013 02:44:46 +0000 (19:44 -0700)]
Bump qtsensors version to 5.3.0

Change-Id: I3e3b93d3aff2e619aa662fec6faf0d11d36e5f1d
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
4 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

4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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

4 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

4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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

4 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>
4 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

4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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

4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>