summaryrefslogtreecommitdiffstats
path: root/src/sensors
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2016-03-07 21:29:44 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2016-03-07 21:29:44 +0100
commitf8e256271f919c36c8d97eae27b1d11678294e70 (patch)
tree774152d663a540dbf0ceb2f1ccb8385842a6e471 /src/sensors
parent5cf1a2f7f4ac4e71b085ef53ff5a05c4676f7ce2 (diff)
parent1e42bf9e28ee0578277047735a5be24fc68abb2c (diff)
Merge remote-tracking branch 'origin/5.6' into 5.7
Conflicts: src/sensors/doc/src/compatmap.qdoc Change-Id: I7bd464cbd506f630798091fef3896050ade7b3f8
Diffstat (limited to 'src/sensors')
-rw-r--r--src/sensors/doc/images/cubehouse.pngbin39408 -> 39346 bytes
-rw-r--r--src/sensors/doc/src/compatmap.qdoc8
-rw-r--r--src/sensors/gestures/qsensorgesture.h2
-rw-r--r--src/sensors/gestures/qsensorgesturemanager.h2
-rw-r--r--src/sensors/gestures/qsensorgesturerecognizer.h2
-rw-r--r--src/sensors/qaccelerometer.h2
-rw-r--r--src/sensors/qaltimeter.h2
-rw-r--r--src/sensors/qambientlightsensor.h2
-rw-r--r--src/sensors/qambienttemperaturesensor.h2
-rw-r--r--src/sensors/qcompass.cpp4
-rw-r--r--src/sensors/qcompass.h2
-rw-r--r--src/sensors/qdistancesensor.h2
-rw-r--r--src/sensors/qgyroscope.h2
-rw-r--r--src/sensors/qholstersensor.h2
-rw-r--r--src/sensors/qirproximitysensor.h2
-rw-r--r--src/sensors/qlightsensor.h2
-rw-r--r--src/sensors/qmagnetometer.h2
-rw-r--r--src/sensors/qorientationsensor.h2
-rw-r--r--src/sensors/qpressuresensor.h2
-rw-r--r--src/sensors/qproximitysensor.h2
-rw-r--r--src/sensors/qrotationsensor.h2
-rw-r--r--src/sensors/qsensor.h8
-rw-r--r--src/sensors/qsensorbackend.h2
-rw-r--r--src/sensors/qtapsensor.h2
-rw-r--r--src/sensors/qtiltsensor.h2
-rw-r--r--src/sensors/sensors.pro12
26 files changed, 37 insertions, 37 deletions
diff --git a/src/sensors/doc/images/cubehouse.png b/src/sensors/doc/images/cubehouse.png
index e3ff7fa5..dac833e3 100644
--- a/src/sensors/doc/images/cubehouse.png
+++ b/src/sensors/doc/images/cubehouse.png
Binary files differ
diff --git a/src/sensors/doc/src/compatmap.qdoc b/src/sensors/doc/src/compatmap.qdoc
index f043195c..399bcec8 100644
--- a/src/sensors/doc/src/compatmap.qdoc
+++ b/src/sensors/doc/src/compatmap.qdoc
@@ -85,7 +85,7 @@
<td nowrap="nowrap">Ambient Light Sensor</td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
- <td bgcolor="gray"></td>
+ <td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
@@ -175,7 +175,7 @@
<td nowrap="nowrap">Orientation Sensor</td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
- <td bgcolor="gray"></td>
+ <td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
@@ -205,7 +205,7 @@
<td nowrap="nowrap">Rotation Sensor</td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
- <td bgcolor="gray"></td>
+ <td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
@@ -225,7 +225,7 @@
<td nowrap="nowrap">Tilt Sensor</td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
- <td bgcolor="gray"></td>
+ <td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
diff --git a/src/sensors/gestures/qsensorgesture.h b/src/sensors/gestures/qsensorgesture.h
index 0132e31c..880be69b 100644
--- a/src/sensors/gestures/qsensorgesture.h
+++ b/src/sensors/gestures/qsensorgesture.h
@@ -58,7 +58,7 @@ class Q_SENSORS_EXPORT QSensorGesture : public QObject
{
//Do not use Q_OBJECT here
public:
- QSensorGesture(const QStringList &ids, QObject *parent = 0);
+ explicit QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR);
~QSensorGesture();
bool isActive();
diff --git a/src/sensors/gestures/qsensorgesturemanager.h b/src/sensors/gestures/qsensorgesturemanager.h
index d9d7d6b9..1ddc84c2 100644
--- a/src/sensors/gestures/qsensorgesturemanager.h
+++ b/src/sensors/gestures/qsensorgesturemanager.h
@@ -55,7 +55,7 @@ class Q_SENSORS_EXPORT QSensorGestureManager : public QObject
Q_DECLARE_PRIVATE(QSensorGestureManager)
public:
- explicit QSensorGestureManager(QObject *parent = 0);
+ explicit QSensorGestureManager(QObject *parent = Q_NULLPTR);
~QSensorGestureManager();
diff --git a/src/sensors/gestures/qsensorgesturerecognizer.h b/src/sensors/gestures/qsensorgesturerecognizer.h
index 1a58ac29..27181983 100644
--- a/src/sensors/gestures/qsensorgesturerecognizer.h
+++ b/src/sensors/gestures/qsensorgesturerecognizer.h
@@ -53,7 +53,7 @@ class Q_SENSORS_EXPORT QSensorGestureRecognizer : public QObject
{
Q_OBJECT
public:
- QSensorGestureRecognizer(QObject *parent = 0);
+ explicit QSensorGestureRecognizer(QObject *parent = Q_NULLPTR);
virtual ~QSensorGestureRecognizer();
virtual QString id() const = 0;
diff --git a/src/sensors/qaccelerometer.h b/src/sensors/qaccelerometer.h
index 24ccb34e..1911e5fb 100644
--- a/src/sensors/qaccelerometer.h
+++ b/src/sensors/qaccelerometer.h
@@ -81,7 +81,7 @@ class Q_SENSORS_EXPORT QAccelerometer : public QSensor
Q_PROPERTY(AccelerationMode accelerationMode READ accelerationMode WRITE setAccelerationMode
NOTIFY accelerationModeChanged)
public:
- explicit QAccelerometer(QObject *parent = 0);
+ explicit QAccelerometer(QObject *parent = Q_NULLPTR);
virtual ~QAccelerometer();
// Keep this enum in sync with QmlAccelerometer::AccelerationMode
diff --git a/src/sensors/qaltimeter.h b/src/sensors/qaltimeter.h
index 67fd6176..0d609b4d 100644
--- a/src/sensors/qaltimeter.h
+++ b/src/sensors/qaltimeter.h
@@ -67,7 +67,7 @@ class Q_SENSORS_EXPORT QAltimeter : public QSensor
{
Q_OBJECT
public:
- explicit QAltimeter(QObject *parent = 0);
+ explicit QAltimeter(QObject *parent = Q_NULLPTR);
~QAltimeter();
QAltimeterReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qambientlightsensor.h b/src/sensors/qambientlightsensor.h
index 2e2bc4d6..f9f7d1b1 100644
--- a/src/sensors/qambientlightsensor.h
+++ b/src/sensors/qambientlightsensor.h
@@ -78,7 +78,7 @@ class Q_SENSORS_EXPORT QAmbientLightSensor : public QSensor
{
Q_OBJECT
public:
- explicit QAmbientLightSensor(QObject *parent = 0);
+ explicit QAmbientLightSensor(QObject *parent = Q_NULLPTR);
virtual ~QAmbientLightSensor();
QAmbientLightReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qambienttemperaturesensor.h b/src/sensors/qambienttemperaturesensor.h
index 534ff04d..181c6112 100644
--- a/src/sensors/qambienttemperaturesensor.h
+++ b/src/sensors/qambienttemperaturesensor.h
@@ -67,7 +67,7 @@ class Q_SENSORS_EXPORT QAmbientTemperatureSensor : public QSensor
{
Q_OBJECT
public:
- explicit QAmbientTemperatureSensor(QObject *parent = 0);
+ explicit QAmbientTemperatureSensor(QObject *parent = Q_NULLPTR);
~QAmbientTemperatureSensor();
QAmbientTemperatureReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qcompass.cpp b/src/sensors/qcompass.cpp
index d9527754..5177a177 100644
--- a/src/sensors/qcompass.cpp
+++ b/src/sensors/qcompass.cpp
@@ -56,7 +56,7 @@ IMPLEMENT_READING(QCompassReading)
\section2 QCompassReading Units
The compass returns the azimuth of the device as degrees from
magnetic north in a clockwise direction based on the top of the device,
- as defined by QPlatformScreen::nativeOrientation.
+ as defined by QScreen::nativeOrientation.
There is also a value to indicate the calibration status of the device.
If the device is not calibrated the azimuth may not be accurate.
@@ -98,7 +98,7 @@ void QCompassReading::setAzimuth(qreal azimuth)
\brief the calibration level of the reading.
Measured as a value from 0 to 1 with higher values being better.
- \sa {QCompassReading Units}, {http://wiki.forum.nokia.com/index.php/CS001671_-_Calibrating_the_magnetometer_sensor}{CS001671 - Calibrating the magnetometer sensor}
+ \sa {QCompassReading Units}
*/
qreal QCompassReading::calibrationLevel() const
diff --git a/src/sensors/qcompass.h b/src/sensors/qcompass.h
index a6ed41fb..169f38c1 100644
--- a/src/sensors/qcompass.h
+++ b/src/sensors/qcompass.h
@@ -72,7 +72,7 @@ class Q_SENSORS_EXPORT QCompass : public QSensor
{
Q_OBJECT
public:
- explicit QCompass(QObject *parent = 0);
+ explicit QCompass(QObject *parent = Q_NULLPTR);
virtual ~QCompass();
QCompassReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qdistancesensor.h b/src/sensors/qdistancesensor.h
index 6faeb4a4..499a695f 100644
--- a/src/sensors/qdistancesensor.h
+++ b/src/sensors/qdistancesensor.h
@@ -68,7 +68,7 @@ class Q_SENSORS_EXPORT QDistanceSensor : public QSensor
{
Q_OBJECT
public:
- explicit QDistanceSensor(QObject *parent = 0);
+ explicit QDistanceSensor(QObject *parent = Q_NULLPTR);
~QDistanceSensor();
QDistanceReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qgyroscope.h b/src/sensors/qgyroscope.h
index 24fcde0d..dc541793 100644
--- a/src/sensors/qgyroscope.h
+++ b/src/sensors/qgyroscope.h
@@ -76,7 +76,7 @@ class Q_SENSORS_EXPORT QGyroscope : public QSensor
{
Q_OBJECT
public:
- explicit QGyroscope(QObject *parent = 0);
+ explicit QGyroscope(QObject *parent = Q_NULLPTR);
virtual ~QGyroscope();
QGyroscopeReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qholstersensor.h b/src/sensors/qholstersensor.h
index 474f694f..253e05b4 100644
--- a/src/sensors/qholstersensor.h
+++ b/src/sensors/qholstersensor.h
@@ -67,7 +67,7 @@ class Q_SENSORS_EXPORT QHolsterSensor : public QSensor
{
Q_OBJECT
public:
- explicit QHolsterSensor(QObject *parent = 0);
+ explicit QHolsterSensor(QObject *parent = Q_NULLPTR);
~QHolsterSensor();
QHolsterReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qirproximitysensor.h b/src/sensors/qirproximitysensor.h
index 85163992..153741c4 100644
--- a/src/sensors/qirproximitysensor.h
+++ b/src/sensors/qirproximitysensor.h
@@ -68,7 +68,7 @@ class Q_SENSORS_EXPORT QIRProximitySensor : public QSensor
{
Q_OBJECT
public:
- explicit QIRProximitySensor(QObject *parent = 0);
+ explicit QIRProximitySensor(QObject *parent = Q_NULLPTR);
virtual ~QIRProximitySensor();
QIRProximityReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qlightsensor.h b/src/sensors/qlightsensor.h
index 9d30af6c..0b16b46f 100644
--- a/src/sensors/qlightsensor.h
+++ b/src/sensors/qlightsensor.h
@@ -71,7 +71,7 @@ class Q_SENSORS_EXPORT QLightSensor : public QSensor
Q_OBJECT
Q_PROPERTY(qreal fieldOfView READ fieldOfView NOTIFY fieldOfViewChanged)
public:
- explicit QLightSensor(QObject *parent = 0);
+ explicit QLightSensor(QObject *parent = Q_NULLPTR);
virtual ~QLightSensor();
QLightReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qmagnetometer.h b/src/sensors/qmagnetometer.h
index 585d09e0..25ad0405 100644
--- a/src/sensors/qmagnetometer.h
+++ b/src/sensors/qmagnetometer.h
@@ -83,7 +83,7 @@ class Q_SENSORS_EXPORT QMagnetometer : public QSensor
Q_OBJECT
Q_PROPERTY(bool returnGeoValues READ returnGeoValues WRITE setReturnGeoValues NOTIFY returnGeoValuesChanged)
public:
- explicit QMagnetometer(QObject *parent = 0);
+ explicit QMagnetometer(QObject *parent = Q_NULLPTR);
virtual ~QMagnetometer();
QMagnetometerReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qorientationsensor.h b/src/sensors/qorientationsensor.h
index 846092ed..703abb3e 100644
--- a/src/sensors/qorientationsensor.h
+++ b/src/sensors/qorientationsensor.h
@@ -79,7 +79,7 @@ class Q_SENSORS_EXPORT QOrientationSensor : public QSensor
{
Q_OBJECT
public:
- explicit QOrientationSensor(QObject *parent = 0);
+ explicit QOrientationSensor(QObject *parent = Q_NULLPTR);
virtual ~QOrientationSensor();
QOrientationReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qpressuresensor.h b/src/sensors/qpressuresensor.h
index 84268719..5deb16bf 100644
--- a/src/sensors/qpressuresensor.h
+++ b/src/sensors/qpressuresensor.h
@@ -71,7 +71,7 @@ class Q_SENSORS_EXPORT QPressureSensor : public QSensor
{
Q_OBJECT
public:
- explicit QPressureSensor(QObject *parent = 0);
+ explicit QPressureSensor(QObject *parent = Q_NULLPTR);
~QPressureSensor();
QPressureReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qproximitysensor.h b/src/sensors/qproximitysensor.h
index 1f3a3cf5..33cd4b2b 100644
--- a/src/sensors/qproximitysensor.h
+++ b/src/sensors/qproximitysensor.h
@@ -68,7 +68,7 @@ class Q_SENSORS_EXPORT QProximitySensor : public QSensor
{
Q_OBJECT
public:
- explicit QProximitySensor(QObject *parent = 0);
+ explicit QProximitySensor(QObject *parent = Q_NULLPTR);
virtual ~QProximitySensor();
QProximityReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qrotationsensor.h b/src/sensors/qrotationsensor.h
index a8148b29..de2053bb 100644
--- a/src/sensors/qrotationsensor.h
+++ b/src/sensors/qrotationsensor.h
@@ -76,7 +76,7 @@ class Q_SENSORS_EXPORT QRotationSensor : public QSensor
Q_OBJECT
Q_PROPERTY(bool hasZ READ hasZ NOTIFY hasZChanged)
public:
- explicit QRotationSensor(QObject *parent = 0);
+ explicit QRotationSensor(QObject *parent = Q_NULLPTR);
virtual ~QRotationSensor();
QRotationReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qsensor.h b/src/sensors/qsensor.h
index a02cc279..cf8de767 100644
--- a/src/sensors/qsensor.h
+++ b/src/sensors/qsensor.h
@@ -116,7 +116,7 @@ public:
UserOrientation
};
- explicit QSensor(const QByteArray &type, QObject *parent = 0);
+ explicit QSensor(const QByteArray &type, QObject *parent = Q_NULLPTR);
virtual ~QSensor();
QByteArray identifier() const;
@@ -207,7 +207,7 @@ Q_SIGNALS:
void bufferSizeChanged(int bufferSize);
protected:
- explicit QSensor(const QByteArray &type, QSensorPrivate &dd, QObject* parent = 0);
+ explicit QSensor(const QByteArray &type, QSensorPrivate &dd, QObject* parent = Q_NULLPTR);
QSensorBackend *backend() const;
private:
@@ -261,7 +261,7 @@ private:
#define DECLARE_READING_D(classname, pclassname)\
public:\
- classname(QObject *parent = 0);\
+ classname(QObject *parent = Q_NULLPTR);\
virtual ~classname();\
void copyValuesFrom(QSensorReading *other);\
private:\
@@ -272,7 +272,7 @@ private:
#define IMPLEMENT_READING_D(classname, pclassname)\
classname::classname(QObject *parent)\
- : QSensorReading(parent, 0)\
+ : QSensorReading(parent, Q_NULLPTR)\
, d(new pclassname)\
{}\
classname::~classname() {}\
diff --git a/src/sensors/qsensorbackend.h b/src/sensors/qsensorbackend.h
index 14484f0b..3837c143 100644
--- a/src/sensors/qsensorbackend.h
+++ b/src/sensors/qsensorbackend.h
@@ -51,7 +51,7 @@ class Q_SENSORS_EXPORT QSensorBackend : public QObject
{
Q_OBJECT
public:
- explicit QSensorBackend(QSensor *sensor, QObject *parent = 0);
+ explicit QSensorBackend(QSensor *sensor, QObject *parent = Q_NULLPTR);
virtual ~QSensorBackend();
virtual void start() = 0;
diff --git a/src/sensors/qtapsensor.h b/src/sensors/qtapsensor.h
index 082a030d..d6207a17 100644
--- a/src/sensors/qtapsensor.h
+++ b/src/sensors/qtapsensor.h
@@ -93,7 +93,7 @@ class Q_SENSORS_EXPORT QTapSensor : public QSensor
Q_PROPERTY(bool returnDoubleTapEvents READ returnDoubleTapEvents WRITE setReturnDoubleTapEvents
NOTIFY returnDoubleTapEventsChanged)
public:
- explicit QTapSensor(QObject *parent = 0);
+ explicit QTapSensor(QObject *parent = Q_NULLPTR);
virtual ~QTapSensor();
QTapReading *reading() const;
static char const * const type;
diff --git a/src/sensors/qtiltsensor.h b/src/sensors/qtiltsensor.h
index 6d25f3d7..6f83a347 100644
--- a/src/sensors/qtiltsensor.h
+++ b/src/sensors/qtiltsensor.h
@@ -74,7 +74,7 @@ class Q_SENSORS_EXPORT QTiltSensor : public QSensor
{
Q_OBJECT
public:
- explicit QTiltSensor(QObject *parent = 0);
+ explicit QTiltSensor(QObject *parent = Q_NULLPTR);
~QTiltSensor();
QTiltReading *reading() const;
static char const * const type;
diff --git a/src/sensors/sensors.pro b/src/sensors/sensors.pro
index a7f60e18..9eeceb8c 100644
--- a/src/sensors/sensors.pro
+++ b/src/sensors/sensors.pro
@@ -7,7 +7,7 @@ CONFIG(debug,debug|release):DEFINES += ENABLE_RUNTIME_SENSORLOG
qtHaveModule(simulator) {
DEFINES += SIMULATOR_BUILD
- QT += simulator
+ QT_FOR_PRIVATE += simulator
}
QMAKE_DOCS = $$PWD/doc/qtsensors.qdocconf
@@ -18,11 +18,6 @@ ANDROID_JAR_DEPENDENCIES = \
jar/QtSensors.jar:org.qtproject.qt5.android.sensors.QtSensors
ANDROID_LIB_DEPENDENCIES = \
plugins/sensors/libqtsensors_android.so
-MODULE_PLUGIN_TYPES = \
- sensors \
- sensorgestures
-
-load(qt_module)
PUBLIC_HEADERS += \
qsensorbackend.h\
@@ -87,3 +82,8 @@ for(s,SENSORS) {
}
HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS $$GESTURE_HEADERS
+
+MODULE_PLUGIN_TYPES = \
+ sensors \
+ sensorgestures
+load(qt_module)