Support using Image as source to heightfield shape


The test 'test_heightfield_readd' should ideally be run in a memory
checking tool to find leaks. It showed no leaks when ran through
'valgrind'.

[ChangeLog][HeightFieldShape] Support using QML Image type as source
through the HeightFieldShape::image property.

Task-number: QTBUG-109818
Change-Id: I5142130c019377b2d91ce7947dfc23f2bb928b00
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit7a2852eefca2f05b534663796ea45d8f6e5e696e
parentc71bc4446e03bdea77e4ec24af2528cae46dddb0
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeThu, 7 Dec 2023 18:05:19 +0100