summaryrefslogtreecommitdiff
path: root/src/positioning/qgeoshape.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-20 11:48:13 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-25 09:31:11 +0000
commit4de705b32c14f1b528a934c5ca91088ed4c89c6d (patch)
treebfefd9919e3c13097fa74b22a07b45fcf1e927bb /src/positioning/qgeoshape.cpp
parent351e07dc2c96f70867dca6aaf7d2eb2919ba3d01 (diff)
downloadqtlocation-4de705b32c14f1b528a934c5ca91088ed4c89c6d.tar.gz
Add missing documentation for QtPositioning and fix qdoc warnings
Change-Id: I396f937f945f158e7bb19f1f7e4633cfcdeffb72 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/positioning/qgeoshape.cpp')
-rw-r--r--src/positioning/qgeoshape.cpp46
1 files changed, 43 insertions, 3 deletions
diff --git a/src/positioning/qgeoshape.cpp b/src/positioning/qgeoshape.cpp
index c8353e21..2861eb8f 100644
--- a/src/positioning/qgeoshape.cpp
+++ b/src/positioning/qgeoshape.cpp
@@ -74,6 +74,8 @@ bool QGeoShapePrivate::operator==(const QGeoShapePrivate &other) const
For the sake of consistency, subclasses should describe the specific
details of the associated areas in terms of QGeoCoordinate instances
and distances in meters.
+
+ This class is a \l Q_GADGET since Qt 5.5.
*/
/*!
@@ -86,6 +88,42 @@ bool QGeoShapePrivate::operator==(const QGeoShapePrivate &other) const
\value CircleType A circular shape.
*/
+/*!
+ \property QGeoShape::type
+ \brief This property holds the type of this geo shape.
+
+ While this property is introduced in Qt 5.5, the related accessor functions
+ exist since the first version of this class.
+
+ \since 5.5
+*/
+
+/*!
+ \property QGeoShape::isValid
+ \brief This property holds the validity of the geo shape.
+
+ A geo shape is considered to be invalid if some of the data that is required to
+ unambiguously describe the geo shape has not been set or has been set to an
+ unsuitable value depending on the subclass of this object. The default constructed
+ objects of this type are invalid.
+
+ While this property is introduced in Qt 5.5, the related accessor functions
+ exist since the first version of this class.
+
+ \since 5.5
+*/
+
+/*!
+ \property QGeoShape::isEmpty
+ \brief This property defines whether this geo shape is empty.
+
+ An empty geo shape is a region which has a geometrical area of 0.
+
+ While this property is introduced in Qt 5.5, the related accessor functions
+ exist since the first version of this class.
+
+ \since 5.5
+*/
inline QGeoShapePrivate *QGeoShape::d_func()
{
return static_cast<QGeoShapePrivate *>(d_ptr.data());
@@ -142,9 +180,6 @@ QGeoShape::ShapeType QGeoShape::type() const
/*!
Returns whether this geo shape is valid.
- An geo shape is considered to be invalid if some of the data that is required to
- unambiguously describe the geo shape has not been set or has been set to an
- unsuitable value.
*/
bool QGeoShape::isValid() const
{
@@ -249,6 +284,11 @@ QGeoShape &QGeoShape::operator=(const QGeoShape &other)
return *this;
}
+/*!
+ Returns a string representation of this geo shape.
+
+ \since 5.5
+*/
QString QGeoShape::toString() const
{
return QStringLiteral("QGeoShape(%1)").arg(type());