QGeo{Path,Polygon}: extend tests and fix eager behavior
Previously the eager versions were only tested via some QtLocation
tests, and the code coverage was not clear.
Extend the tests to cover both Lazy (default) and Eager behavior.
The updated tests reveal that boundingGeoRectangle() for the
newly-created Eager version was not calculated properly. The reason
for that is that at the time of construction markDirty() is called on
the instance of QGeoPathPrivateBase, so it just toggles the flag.
Update the code to call the proper overload of markDirty() again, once
the construction of the proper QGeo{Path,Polygon}PrivateEager is done.
Task-number: QTBUG-144952
Pick-to: 6.11 6.10 6.8
Change-Id: Iea0a64bda00e42d56cbda767fc4e308bd680ac48
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>