API review: Make sure the user can't derive from Iterator


Move the content of protected section into private and
add explicit friends to derived subclasses.

This is the same pattern as in case of StorageBase and Storage.

Pick-to: 6.11
Change-Id: I02fbf15a5f109c5a9f48fd336868101af68827d4
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commitebc884b5a3b63b8e69f19be6858e08a509ad3c1d
parentdda24a12bb96103c1356bcd3f3937f022d2c08b2
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeMon, 2 Feb 2026 16:29:58 +0100