diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2012-03-29 11:09:41 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-29 05:41:37 +0200 |
commit | 6c06a5536ad4dfe72423915c9bf99cd25a6c9b93 (patch) | |
tree | b15763bbd2784ee223e7eb5dbf7faae95d7413c0 /src/imports/sensors2/qsensor2proximity.cpp | |
parent | 2646629ea49cf808220ef54c77df613cc9fea474 (diff) |
fix up documentation according to the doc guys.
Change-Id: I417e3c57e986f9364f25d5a0e742bd31833de283
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'src/imports/sensors2/qsensor2proximity.cpp')
-rw-r--r-- | src/imports/sensors2/qsensor2proximity.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/imports/sensors2/qsensor2proximity.cpp b/src/imports/sensors2/qsensor2proximity.cpp index ac2cf30a..7433e80e 100644 --- a/src/imports/sensors2/qsensor2proximity.cpp +++ b/src/imports/sensors2/qsensor2proximity.cpp @@ -50,9 +50,15 @@ QT_BEGIN_NAMESPACE \inqmlmodule QtSensors 5 \ingroup qml-QtSensors5 \since QtSensors 5.0 - \brief The ProximitySensor element provides an easy access to determine if the proximity of the mobile user by using the proximity sensor. + \brief Provides access to the proximity sensor. + + This element 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. + + The \l {QML Qt Sensors example} is an example how to use this QML element. + */ QSensor2Proximity::QSensor2Proximity(QObject* parent) @@ -70,7 +76,8 @@ QSensor2Proximity::~QSensor2Proximity() /*! \qmlproperty bool QtSensors5::ProximitySensor::near This property holds whether the sensor has detected something in close proximity. - Device dependent, but typically 1-2 cm. + The definition of close proximity is device dependent, but it + typically stands for a distance of 1-2 cm. */ bool QSensor2Proximity::near() { |