summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-09-28 03:01:05 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-09-28 03:01:11 +0200
commitbf062048c3d1622fc1a671678fb930c738b18e8d (patch)
tree1d2059c5dfda77d15df6635c7f39d5d334c48756
parent493fece68d4d0cb6821342cfabdb7ab2bf60be46 (diff)
parente6e4ff8dcf1b00639e87bc0725daa0e1e8ca0510 (diff)
Merge "Merge remote-tracking branch 'origin/5.14' into 5.15"
-rw-r--r--src/sensors/doc/src/qtsensors.qdoc5
-rw-r--r--src/sensors/gestures/qsensorgesture.cpp8
-rw-r--r--src/sensors/gestures/qsensorgesture.h4
-rw-r--r--src/sensors/gestures/qsensorgesturerecognizer.cpp10
4 files changed, 14 insertions, 13 deletions
diff --git a/src/sensors/doc/src/qtsensors.qdoc b/src/sensors/doc/src/qtsensors.qdoc
index cd03101a..782eef75 100644
--- a/src/sensors/doc/src/qtsensors.qdoc
+++ b/src/sensors/doc/src/qtsensors.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -35,7 +35,8 @@
The Qt Sensors API also provides a motion gesture recognition API for devices.
Currently the API is supported on \l{Qt for Android}{Android},
- \l{Qt for iOS}{iOS}, \l{https://sailfishos.org}{SailFish} and \l{Qt for WinRT}{WinRT}.
+ \l{Qt for iOS}{iOS}, \l{https://sailfishos.org}{SailFish}, and
+ \l{Qt for UWP}{Universal Windows Platform (UWP)}.
\section1 Information for Application Writers
diff --git a/src/sensors/gestures/qsensorgesture.cpp b/src/sensors/gestures/qsensorgesture.cpp
index b643998e..8d5e2ddf 100644
--- a/src/sensors/gestures/qsensorgesture.cpp
+++ b/src/sensors/gestures/qsensorgesture.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtSensors module of the Qt Toolkit.
@@ -71,12 +71,10 @@
\sa QSensorGestureManager
*/
-#ifdef Q_QDOC
/*!
- \fn QSensorGesture::detected(QString gestureId)
- Signals when the \a gestureId gesture has been recognized.
+ \fn void QSensorGesture::detected(QString)
+ Signals when the gesture has been recognized.
*/
-#endif
/*!
Constructs the sensor gesture, and initializes the \a ids list of recognizers,
diff --git a/src/sensors/gestures/qsensorgesture.h b/src/sensors/gestures/qsensorgesture.h
index de727954..53de7630 100644
--- a/src/sensors/gestures/qsensorgesture.h
+++ b/src/sensors/gestures/qsensorgesture.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtSensors module of the Qt Toolkit.
@@ -80,12 +80,10 @@ private:
const QMetaObject *metaObject() const override;
int qt_metacall(QMetaObject::Call, int, void **) override;
-#ifdef Q_QDOC
Q_SIGNALS:
// these signals are created at runtime, along with
// gesture recognizer specific signals.
void detected(QString);
-#endif
};
QT_END_NAMESPACE
diff --git a/src/sensors/gestures/qsensorgesturerecognizer.cpp b/src/sensors/gestures/qsensorgesturerecognizer.cpp
index 9254da28..c992ac01 100644
--- a/src/sensors/gestures/qsensorgesturerecognizer.cpp
+++ b/src/sensors/gestures/qsensorgesturerecognizer.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtSensors module of the Qt Toolkit.
@@ -104,8 +104,12 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \fn QSensorGestureRecognizer::detected(const QString &gestureId)
- Signals when the gesture with id \a &gestureId been recognized.
+ \fn QSensorGestureRecognizer::detected(const QString &)
+ Signals when a gesture is recognized. Implementors can use this signal to send
+ recognizer-specific gestures, such as \c detected("shake_left") or implement
+ custom signals such as \c shakeLeft().
+
+ The custom signals are available in the QSensorGesture object at runtime.
*/
class QSensorGestureRecognizerPrivate