diff options
Diffstat (limited to 'src/imports/positioning/positioning.cpp')
-rw-r--r-- | src/imports/positioning/positioning.cpp | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp index fb1e987e..232d2589 100644 --- a/src/imports/positioning/positioning.cpp +++ b/src/imports/positioning/positioning.cpp @@ -309,9 +309,11 @@ QT_BEGIN_NAMESPACE Returns the current type of the shape. \list - \li GeoShape.UnknownType - The shape's type is not known. - \li GeoShape.RectangleType - The shape is a \l georectangle. - \li GeoShape.CircleType - The shape is a \l geocircle. + \li \c GeoShape.UnknownType - The shape's type is not known. + \li \c GeoShape.RectangleType - The shape is a \l georectangle. + \li \c GeoShape.CircleType - The shape is a \l geocircle. + \li \c GeoShape.PathType - The shape is a \l geopath. (Since Qt 5.9) + \li \c GeoShape.PolygonType - The shape is a \l geopolygon. (Since Qt 5.10) \endlist This QML property was introduced by Qt 5.5. @@ -529,6 +531,31 @@ QT_BEGIN_NAMESPACE The default value for the width is 0. */ +/*! + \qmlbasictype geopolygon + \inqmlmodule QtPositioning + \ingroup qml-QtPositioning5-basictypes + \since 5.10 + + \brief The geopolygon type represents a geographic polygon. + + The \c geopolygon type is a \l [QML] geoshape that represents a geographic + polygon. It is a direct representation of QGeoPolygon and is defined in + terms of a \l path which holds a list of geo coordinates in the polygon. + + The polygon is considered invalid if its path holds less than three + coordinates. + + When integrating with C++, note that any QGeoPolygon value passed into QML + is automatically converted into a \c geopolygon, and vice versa. + + \section1 Properties + + \section2 path + + This property holds the list of coordinates defining the polygon. +*/ + static QObject *singleton_type_factory(QQmlEngine *engine, QJSEngine *jsEngine) { Q_UNUSED(engine) |