QCanvasBoxGradient: simplify constructor
The constructor with 6 parameters of the same type was hard to use, and
code calling it hard to read and understand. There is no advantage over
calling the property setters explicitly after constructing with only the
parameter for the dimension.
Remove the defaulted parameters, and adjust tests, examples, and
documentation.
Pick-to: 6.12
Task-number: QTBUG-146286
Change-Id: I8ccabf162bf5b3a5064d1b6b6de4f75608a0654d
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | e7bb5cc886f52417bbb14a183713acdb8e66f7d3 |
| parent | 3b937bace3b72a67c278070a704a50b65f750b53 |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Mon, 24 Aug 2026 19:49:37 +0000 |
- M examples/canvaspainter/gallery/galleryitemrenderer.cpp
- M src/canvas2d/qcanvas2dcontext.cpp
- M src/canvaspainter/qcanvasboxgradient.cpp
- M src/canvaspainter/qcanvasboxgradient.h
- M src/canvaspainter/qcanvasgradient.cpp
- M tests/auto/qcbrush/tst_qcbrush.cpp
- M tests/baseline/canvaspainting/canvaspainting_cpptests.cpp