summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomaneuver.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-11-28 17:47:00 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-11-29 23:02:25 +0000
commit057fe199941b8783312abeedde315118b59ccb8e (patch)
tree293194d2e0c705d71c9b5d1b809da3e378a6bf40 /src/location/maps/qgeomaneuver.cpp
parente5fab0a22988ed98657a4954b0104cc25213effc (diff)
downloadqtlocation-057fe199941b8783312abeedde315118b59ccb8e.tar.gz
Add extended attributes to QGeoManeuver/QDeclarativeGeoManeuver
Change-Id: I6ed1d869d0a97e397057e92cf17ce9fddb4eca3f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeomaneuver.cpp')
-rw-r--r--src/location/maps/qgeomaneuver.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/location/maps/qgeomaneuver.cpp b/src/location/maps/qgeomaneuver.cpp
index f38cb293..d1322228 100644
--- a/src/location/maps/qgeomaneuver.cpp
+++ b/src/location/maps/qgeomaneuver.cpp
@@ -283,6 +283,27 @@ QGeoCoordinate QGeoManeuver::waypoint() const
return d_ptr->waypoint;
}
+/*!
+ Sets the extended attributes associated with this maneuver.
+
+ \since QtLocation 5.11
+*/
+void QGeoManeuver::setExtendedAttributes(const QVariantMap &extendedAttributes)
+{
+ d_ptr->valid = true;
+ d_ptr->extendedAttributes = extendedAttributes;
+}
+
+/*!
+ Returns the extended attributes associated with this maneuver.
+
+ \since QtLocation 5.11
+*/
+QVariantMap QGeoManeuver::extendedAttributes() const
+{
+ return d_ptr->extendedAttributes;
+}
+
/*******************************************************************************
*******************************************************************************/