Extend tst_QGeoPolygon::comparison() test


To check that it correctly compares polygons with other QGeoShape-based
objects.

This is a pre-requisite for a follow-up commit that will rework the
QGeoPathPrivate hierarchy.

As a drive-by: fix the includes in the relevant unit-test, since we
had to add a new include for QGeoPath.

Task-number: QTBUG-144769
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ibf47d48be9028efb2312acd747a34e961aa6ecce
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit68692bed968b01fb6e0cae20d4bd97d9f67a222a
parent78994c7d656fc6223763b1a050b05d239df11f00
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 11 Mar 2026 12:24:02 +0100