diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-20 11:20:31 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-20 11:06:27 +0000 |
commit | d0e959844d60a547430cd7731d66452306561159 (patch) | |
tree | ff0083ae12416020a58392db1053a638b4cf091f /src/imports | |
parent | fca92f5d465be1c3701545a716dd91db27a2093c (diff) |
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 <andy.shaw@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/sensors/qmlsensorglobal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/sensors/qmlsensorglobal.cpp b/src/imports/sensors/qmlsensorglobal.cpp index 3d043565..c2a67e85 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<string> SensorGlobal::sensorTypes() + \qmlmethod list<string> 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<string> SensorGlobal::sensorsForType(type) + \qmlmethod list<string> 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. |