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>
commitb2edd51351af86381e22e76d139e983dd94d32c5
parent81da5a78975053add8361598973845e39cb9d302
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 20 Mar 2026 16:23:56 +0100