From 8e61494da8ff9c36d09faf3ced09bbe79a719f2d Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Fri, 7 Apr 2017 12:43:47 +0200 Subject: Add geopath qml basic type documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4f0b09cb8aac0b4d4f2d27cf350a30b7ed800f11 Reviewed-by: Nico Vertriest Reviewed-by: Alex Blasche Reviewed-by: Topi Reiniƶ --- src/imports/positioning/positioning.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/imports') diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp index f00a4ae6..41242850 100644 --- a/src/imports/positioning/positioning.cpp +++ b/src/imports/positioning/positioning.cpp @@ -495,6 +495,38 @@ QT_BEGIN_NAMESPACE The default value for the radius is -1 indicating an invalid geocircle area. */ +/*! + \qmlbasictype geopath + \inqmlmodule QtPositioning + \ingroup qml-QtPositioning5-basictypes + \since 5.9 + + \brief The geopath type represents a geographic path. + + The \c geopath type is a \l {geoshape} that represents a geographic + path. It is a direct representation of a \l QGeoPath and is defined + in terms of a \l {path} which holds the list of geo coordinates in the + path. + + The path is considered invalid if it is empty. + + When integrating with C++, note that any QGeoPath value passed into QML from C++ is + automatically converted into a \c geopath value, and vice versa. + + \section1 Properties + + \section2 path + + This property holds the list of coordinates defining the path. + + \section2 width + + This property holds the width of the path in meters. This is currently only used + when calling the \l {geoshape.contains} method. + + The default value for the width is 0. +*/ + static QObject *singleton_type_factory(QQmlEngine *engine, QJSEngine *jsEngine) { Q_UNUSED(engine) -- cgit v1.2.1