Include what you use: qquaternion.h


qmatrix4x4.h will lose its qquaternion.h include, so include
qquaternion.h explicitly in all files that mention 'QQuaternion',
unless, for a foo.cpp, the own foo.h has already included it.

Also add forward declarations where necessary.

No specific "Amends"; QQuaternion use was added "peu à peu" to the
module, but since the module hasn't materially changed since 6.5, this
patch will apply to all active branches.

Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I2668164501b3ac5484546cf27c54b0d81c3ac8a6
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
commit3aa9c52946d48d7805a7d6166e89a444c4f6ae23
parente047b93cd7952b3f37c25ae2e9d5a97ab7ba00b8
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 14 Jul 2025 13:55:19 +0200