From 3aebcb96b72c8e2dbfeff078e67af55489c2bac8 Mon Sep 17 00:00:00 2001 From: Peter Yard Date: Wed, 13 Jun 2012 14:14:30 +1000 Subject: Docs: change QML elements to QML types in docs. Change-Id: I54a9a1972978f1d989d262f137b5890d1feb35e0 Reviewed-by: Lincoln Ramsay --- src/imports/sensors2/qsensor2ambientlight.cpp | 6 +++--- src/imports/sensors2/qsensor2common.cpp | 6 +++--- src/imports/sensors2/qsensor2gesture.cpp | 12 ++++++------ src/imports/sensors2/qsensor2proximity.cpp | 6 +++--- src/imports/sensors2/qsensor2tilt.cpp | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) (limited to 'src/imports/sensors2') diff --git a/src/imports/sensors2/qsensor2ambientlight.cpp b/src/imports/sensors2/qsensor2ambientlight.cpp index 28f46eda..c9a0b109 100644 --- a/src/imports/sensors2/qsensor2ambientlight.cpp +++ b/src/imports/sensors2/qsensor2ambientlight.cpp @@ -52,12 +52,12 @@ QT_BEGIN_NAMESPACE \since QtSensors 5.0 \brief Provides access to the current ambient light level. - This element provides easy access to determine the ambient light by using the ambient light sensor. + This type provides easy access to determine the ambient light by using the ambient light sensor. For example brightening the screen according to whether the device is in full sunlight or not. - This element is part of the \b{QtSensors 5} module. + This type is part of the \b{QtSensors 5} module. - The \l {Qt Sensors - QML example} is an example how to use this QML element. + The \l {Qt Sensors - QML example} is an example how to use this QML type. */ QSensor2AmbientLight::QSensor2AmbientLight(QObject* parent) : qsensor2common(parent) diff --git a/src/imports/sensors2/qsensor2common.cpp b/src/imports/sensors2/qsensor2common.cpp index 2deb94f2..91c296d8 100644 --- a/src/imports/sensors2/qsensor2common.cpp +++ b/src/imports/sensors2/qsensor2common.cpp @@ -48,11 +48,11 @@ QT_BEGIN_NAMESPACE /*! \qmlclass Sensor qsensor2common \inqmlmodule QtSensors 5 - \brief The Sensor element serves as a base type for sensors. + \brief The Sensor type serves as a base type for sensors. - The Sensor element serves as a base type for sensors. + The Sensor type serves as a base type for sensors. - This element cannot be directly created. Please use one of the sub-classes instead. + This type cannot be directly created. Please use one of the sub-classes instead. */ qsensor2common::qsensor2common(QObject *parent) diff --git a/src/imports/sensors2/qsensor2gesture.cpp b/src/imports/sensors2/qsensor2gesture.cpp index 63b5f759..cb4f1559 100644 --- a/src/imports/sensors2/qsensor2gesture.cpp +++ b/src/imports/sensors2/qsensor2gesture.cpp @@ -53,15 +53,15 @@ QT_BEGIN_NAMESPACE \since QtSensors 5.0 \brief Provides notifications when sensor-based gestures are detected. - This element provides notification when sensor gestures are triggered. + This type provides notification when sensor gestures are triggered. - This element is part of the \b{QtSensors 5} module. + This type is part of the \b{QtSensors 5} module. - The following QML code creates a "shake" and "template" SensorGesture QML element, and - displays the detected gesture in a text element. + The following QML code creates a "shake" and "template" SensorGesture QML type, and + displays the detected gesture in a text type. QtSensors.shake gesture is available with the Qt Sensors API, but the QtSensors.SecondCounter - sensor gesture is provided as example code for the \l {Qt Sensors - SensorGesture QML Element example} + sensor gesture is provided as example code for the \l {Qt Sensors - SensorGesture QML Type example} \qml Item { @@ -134,7 +134,7 @@ QStringList QSensor2Gesture::availableGestures() /*! \qmlproperty stringlist QtSensors5::SensorGesture::gestures Set this property to a list of the gestures that the application is interested in detecting. - This property cannot be changed while the element is enabled. + This property cannot be changed while the type is enabled. The properties validGestures and invalidGestures will be set as appropriate immediately. To determine all available getures on the system please use the diff --git a/src/imports/sensors2/qsensor2proximity.cpp b/src/imports/sensors2/qsensor2proximity.cpp index d126dc97..5c92ad1b 100644 --- a/src/imports/sensors2/qsensor2proximity.cpp +++ b/src/imports/sensors2/qsensor2proximity.cpp @@ -52,12 +52,12 @@ QT_BEGIN_NAMESPACE \since QtSensors 5.0 \brief Provides access to the proximity sensor. - This element allows determining if something is held in close proximity to the device, such + This type allows determining if something is held in close proximity to the device, such as determining if the user is holding the device to their ear. - This element is part of the \b{QtSensors 5} module. + This type is part of the \b{QtSensors 5} module. - The \l {Qt Sensors - QML example} is an example how to use this QML element. + The \l {Qt Sensors - QML example} is an example how to use this QML type. */ diff --git a/src/imports/sensors2/qsensor2tilt.cpp b/src/imports/sensors2/qsensor2tilt.cpp index 99d4a601..189a1b2b 100644 --- a/src/imports/sensors2/qsensor2tilt.cpp +++ b/src/imports/sensors2/qsensor2tilt.cpp @@ -57,13 +57,13 @@ QT_BEGIN_NAMESPACE \since QtSensors 5.0 \brief Provides access to the current X and Y axis rotation angles of the device. - This element provides tilt data from the rotation around the x and y axis of the device using + This type provides tilt data from the rotation around the x and y axis of the device using the accelerometer sensor. Like for a marble and maze game, where the marble is rolled around the screen according to the user tilting the device. - This element is part of the \b{QtSensors 5} module. + This type is part of the \b{QtSensors 5} module. - The \l {Qt Sensors - QML example} is an example how to use this QML element. + The \l {Qt Sensors - QML example} is an example how to use this QML type. */ QSensor2Tilt::QSensor2Tilt(QObject* parent) -- cgit v1.2.3