From 1d867cd2e4ab1560a22294f97e03a779200ef4db Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Mon, 23 Jan 2017 17:37:59 +0100 Subject: Expose QDeclarativeGeoMapCopyrightNotice in QML This change allows the user to create a separate MapCopyrightsNotice, and source the notice from a Map element. The purpose is to allow the user to stack multiple Map elements and have a cleanly arranged set of copyright notices on top of this stack. To do so it is now possible to setCopyrightsVisible(false) on all the Map elements, then declare one notice per map, and arrange it appropriately on top of the stack. As for any other QQuickItem, a MapCopyrightsNotice cannot be declared inside a Map {} element, and if done so, a a warning will be produced. Change-Id: Ie38dec40cf25f0c44d1da39fd74469944eb79eba Reviewed-by: Alex Blasche --- src/imports/location/location.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/imports') diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp index f1494a04..44f4bd5a 100644 --- a/src/imports/location/location.cpp +++ b/src/imports/location/location.cpp @@ -51,6 +51,7 @@ #include #include #include +#include //Place includes #include @@ -171,6 +172,7 @@ public: // Register the 5.9 types minor = 9; qmlRegisterType(uri, major, minor, "MapParameter"); + qmlRegisterType(uri, major, minor, "MapCopyrightNotice"); //registrations below are version independent -- cgit v1.2.1