Refactor QDeclarativeGeoMapItemUtils into a namespace


The class was exported, but none of the static members or nested types
are used outside the library, including tests. So turn the class into a
namespace.

Fix coding style issues, and convert to ranged-for loops.

Pick-to: 6.2
Change-Id: I57bc78eb91be721943608bacfc1b54ecd5b272a8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
commit3af758a4cf133a1d8b465a23e4967d64f0e52237
parenta3204868017d1c7638412bf94257f754151e42e7
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 13 Sep 2022 17:07:52 +0200