diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2014-01-06 13:44:16 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-07 09:24:21 +0100 |
commit | 5e8e9451d1f6c94d0242f60a48e4f154403f6ac1 (patch) | |
tree | 73dc6006e921246d214f4f52efa83b31efdfd695 /src/location/maps/qgeoroutingmanager.h | |
parent | 28e6a10ca23df2f4dd5aee73c902e0bfbec2f6d6 (diff) | |
download | qtlocation-5e8e9451d1f6c94d0242f60a48e4f154403f6ac1.tar.gz |
Enhance measurement system support in routing manager.
It is useful to be able to set the measurement system independently of
the locale used by the routing manager. Add accessor functions for the
measurement system to the routing manager classes.
Locale and measurement system properties are also added to the
RouteModel QML type.
Change-Id: I8ee9fbdb5ab94615fef7019914b0f104aebfa9c8
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/location/maps/qgeoroutingmanager.h')
-rw-r--r-- | src/location/maps/qgeoroutingmanager.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/location/maps/qgeoroutingmanager.h b/src/location/maps/qgeoroutingmanager.h index d9ff6816..72dfc370 100644 --- a/src/location/maps/qgeoroutingmanager.h +++ b/src/location/maps/qgeoroutingmanager.h @@ -42,22 +42,20 @@ #ifndef QGEOROUTINGMANAGER_H #define QGEOROUTINGMANAGER_H +#include <QtCore/QObject> +#include <QtCore/QLocale> #include <QtLocation/QGeoRouteRequest> #include <QtLocation/QGeoRouteReply> -#include <QObject> -#include <QMap> - QT_BEGIN_NAMESPACE -class QLocale; - class QGeoRoutingManagerEngine; class QGeoRoutingManagerPrivate; class Q_LOCATION_EXPORT QGeoRoutingManager : public QObject { Q_OBJECT + public: ~QGeoRoutingManager(); @@ -76,6 +74,8 @@ public: void setLocale(const QLocale &locale); QLocale locale() const; + void setMeasurementSystem(QLocale::MeasurementSystem system); + QLocale::MeasurementSystem measurementSystem() const; Q_SIGNALS: void finished(QGeoRouteReply *reply); |