From d0e959844d60a547430cd7731d66452306561159 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 20 Mar 2019 11:20:31 +0100 Subject: Doc: Fix name of global QML singleton The module API is called "QmlSensors", not "SensorGlobal". Fixes: QTBUG-74571 Change-Id: Ia998082be99517393389ba3a9785150e97d9c15f Reviewed-by: Andy Shaw --- src/imports/sensors/qmlsensorglobal.cpp | 12 ++++++------ src/sensors/doc/src/qtsensors5.qdoc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/imports/sensors/qmlsensorglobal.cpp b/src/imports/sensors/qmlsensorglobal.cpp index 3d04356..c2a67e8 100644 --- a/src/imports/sensors/qmlsensorglobal.cpp +++ b/src/imports/sensors/qmlsensorglobal.cpp @@ -43,13 +43,13 @@ QT_BEGIN_NAMESPACE /*! - \qmltype SensorGlobal + \qmltype QmlSensors \instantiates QmlSensorGlobal \inqmlmodule QtSensors \since QtSensors 5.0 - \brief The SensorGlobal element provides the module API. + \brief The QmlSensors singleton provides the module API. - The SensorGlobal element provides the module API. + The QmlSensors singleton provides the module API. This element cannot be directly created. It can only be accessed via a namespace import. @@ -76,7 +76,7 @@ QmlSensorGlobal::~QmlSensorGlobal() } /*! - \qmlmethod list SensorGlobal::sensorTypes() + \qmlmethod list QmlSensors::sensorTypes() Returns a list of the sensor types that have been registered. Please see QSensor::sensorTypes() for information. @@ -92,7 +92,7 @@ QStringList QmlSensorGlobal::sensorTypes() const } /*! - \qmlmethod list SensorGlobal::sensorsForType(type) + \qmlmethod list QmlSensors::sensorsForType(type) Returns a list of the sensor identifiers that have been registered for \a type. Please see QSensor::sensorsForType() for information. @@ -108,7 +108,7 @@ QStringList QmlSensorGlobal::sensorsForType(const QString &type) const } /*! - \qmlmethod string SensorGlobal::defaultSensorForType(type) + \qmlmethod string QmlSensors::defaultSensorForType(type) Returns the default sensor identifier that has been registered for \a type. Please see QSensor::defaultSensorForType() for information. diff --git a/src/sensors/doc/src/qtsensors5.qdoc b/src/sensors/doc/src/qtsensors5.qdoc index aec6dda..688ff06 100644 --- a/src/sensors/doc/src/qtsensors5.qdoc +++ b/src/sensors/doc/src/qtsensors5.qdoc @@ -60,7 +60,7 @@ } \endqml - The documentation for the module API can be found in SensorGlobal. + The documentation for the module API can be found in QmlSensors. \section1 QML Sensor Types -- cgit v1.2.1