diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-01-19 18:51:26 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-02-07 16:43:29 +0000 |
commit | 538640b70f2062285415c3c324926bc06e814e9d (patch) | |
tree | 6cb71b76f1c9b4e9edbfbee16a61008977d4fc9b /src/imports | |
parent | 2184cee7b90bc4c2b612bfed5225e7ab7b1a0ff8 (diff) | |
download | qtlocation-538640b70f2062285415c3c324926bc06e814e9d.tar.gz |
Introduce MapRouteObject
Change-Id: I3680550ae22ef4b143f2e545f672905737a41df2
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/locationlabs/locationlabs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/locationlabs/locationlabs.cpp b/src/imports/locationlabs/locationlabs.cpp index a7719139..0cdd7f84 100644 --- a/src/imports/locationlabs/locationlabs.cpp +++ b/src/imports/locationlabs/locationlabs.cpp @@ -36,7 +36,7 @@ //#include <QtLocationLabs/private/qmapiconobject_p.h> //#include <QtLocationLabs/private/qmapobjectview_p.h> -//#include <QtLocationLabs/private/qmaprouteobject_p.h> +#include <QtLocationLabs/private/qmaprouteobject_p.h> //#include <QtLocationLabs/private/qdeclarativenavigator_p.h> #include <QtQml/qqmlextensionplugin.h> @@ -67,14 +67,14 @@ public: if (QLatin1String(uri) == QLatin1String("Qt.labs.location")) { // @uri QtLocationLabs -// int major = 5; -// int minor = 11; + int major = 5; + int minor = 11; // Register the 5.11 types // qmlRegisterType<QDeclarativeNavigator>(uri, major, minor, "Navigator"); // qmlRegisterType<QMapIconObject>(uri, major, minor, "MapIconObject"); // qmlRegisterType<QMapObjectView>(uri, major, minor, "MapObjectView"); -// qmlRegisterType<QMapRouteObject>(uri, major, minor, "MapRouteObject"); + qmlRegisterType<QMapRouteObject>(uri, major, minor, "MapRouteObject"); // Register the latest Qt version as QML type version qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR); |