Register QPlaceSupplier as a QML value type
Make QPlaceSupplier a gadget, and register it as a value type with the
QML engine. Remove declarative wrapper, and consolidate the
documentation.
Adjust the tests and remove tests that verify that the type behaves like
an object. Initialize placeSupplier properties as a grouped property, or
via a converter from QJSValue.
Change-Id: Id35ac1d9f03ce831013e4a7231302abd7b6cd7c8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| commit | 38fb82bfef8f5a599ee374958a20b9d271002c88 |
| parent | 6af3cc27235a67420d32dbe0146d94ada6b25028 |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Thu, 15 Sep 2022 18:22:10 +0200 |
- M src/imports/location/location.cpp
- M src/imports/location/location.h
- M src/location/CMakeLists.txt
- M src/location/declarativeplaces/qdeclarativeplace.cpp
- M src/location/declarativeplaces/qdeclarativeplace_p.h
- M src/location/declarativeplaces/qdeclarativeplacecontentmodel.cpp
- M src/location/declarativeplaces/qdeclarativeplacecontentmodel_p.h
- M src/location/declarativeplaces/qdeclarativeplaceimagemodel.cpp
- M src/location/declarativeplaces/qdeclarativeplaceimagemodel_p.h
- M src/location/declarativeplaces/qdeclarativereviewmodel.cpp
- D src/location/declarativeplaces/qdeclarativesupplier.cpp
- D src/location/declarativeplaces/qdeclarativesupplier_p.h
- M src/location/places/qplacesupplier.cpp
- M src/location/places/qplacesupplier.h
- M tests/auto/declarative_location_core/tst_place.qml
- M tests/auto/declarative_location_core/tst_supplier.qml
- M tests/auto/qmlinterface/data/TestPlace.qml
- M tests/auto/qmlinterface/data/TestSupplier.qml