summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-03-21 16:13:22 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-04-17 09:37:57 +0000
commit6c6a9e787c2e1443fc4318482504e672a6ca386e (patch)
treec4eac35786f86e3f3b482f25a6082f83df20810b
parentcf75dcb405b0c467cbaf1749bb0f92ff57de3444 (diff)
downloadqtlocation-6c6a9e787c2e1443fc4318482504e672a6ca386e.tar.gz
Add documentation for QMapPolylineObject
Change-Id: I2112ae3aa2bb5b9c8dc18552c7643039c37a694e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/labs/qmappolylineobject.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/location/labs/qmappolylineobject.cpp b/src/location/labs/qmappolylineobject.cpp
index 1e625c1f..bea79327 100644
--- a/src/location/labs/qmappolylineobject.cpp
+++ b/src/location/labs/qmappolylineobject.cpp
@@ -40,6 +40,19 @@
QT_BEGIN_NAMESPACE
+/*!
+ \qmltype MapPolylineObject
+ \instantiates QMapPolylineObject
+ \inqmlmodule Qt.labs.location
+ \ingroup qml-QtLocation5-maps
+ \inherits QGeoMapObject
+
+ \brief The MapPolylineObject displays a polyline on a Map.
+
+ The MapPolylineObject displays a polyline on a Map.
+ The MapPolylineObject type only makes sense when contained in a Map or in a \l MapObjectView.
+*/
+
QMapPolylineObjectPrivate::QMapPolylineObjectPrivate(QGeoMapObject *q) : QGeoMapObjectPrivate(q)
{
@@ -130,6 +143,12 @@ QMapPolylineObject::QMapPolylineObject(QObject *parent)
QMapPolylineObject::~QMapPolylineObject()
{}
+/*!
+ \qmlproperty VariantList Qt.labs.location::MapPolylineObject::path
+
+ This property holds the ordered list of coordinates which
+ define the polyline.
+*/
QVariantList QMapPolylineObject::path() const
{
QVariantList p;
@@ -138,6 +157,19 @@ QVariantList QMapPolylineObject::path() const
return p;
}
+/*!
+ \qmlpropertygroup Qt.labs.location::MapPolylineObject::line
+ \qmlproperty int MapPolylineObject::line.width
+ \qmlproperty color MapPolylineObject::line.color
+
+ This property is part of the line property group. The line
+ property group holds the width and color used to draw the line.
+
+ The width is in pixels and is independent of the zoom level of the map.
+ The default values correspond to a black border with a width of 1 pixel.
+
+ For no line, use a width of 0 or a transparent color.
+*/
QDeclarativeMapLineProperties *QMapPolylineObject::border()
{
if (!m_border) {