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>
| commit | 7a2852eefca2f05b534663796ea45d8f6e5e696e |
| parent | c71bc4446e03bdea77e4ec24af2528cae46dddb0 |
| author | Jonas Karlsson <jonas.karlsson@qt.io> |
| committer | Jonas Karlsson <jonas.karlsson@qt.io> |
| commit time | Thu, 7 Dec 2023 18:05:19 +0100 |
- M src/quick3dphysics/qheightfieldshape.cpp
- M src/quick3dphysics/qheightfieldshape_p.h
- M tests/auto/CMakeLists.txt
- A tests/auto/heightfield/CMakeLists.txt
- A tests/auto/heightfield/data/hf.png
- A tests/auto/heightfield/tst_heightfield.cpp
- A tests/auto/heightfield/tst_heightfield.qml
- A tests/auto/heightfield_readd/CMakeLists.txt
- A tests/auto/heightfield_readd/data/hf.png
- A tests/auto/heightfield_readd/tst_heightfield_readd.cpp
- A tests/auto/heightfield_readd/tst_heightfield_readd.qml
- A tests/baseline/data/HeightfieldChangeImageSource.qml
- A tests/baseline/data/HeightfieldChangeSource.qml
- A tests/baseline/data/cloth-heightmap-small.png