Add part 3 of colorpalette example: Delete a color
Add delete color functionnality.
Note: All qml code is taken from "Qt Quick Demo - RESTful API client".
It only required minor changes in calls to make it work.
In Colorview.qml
- Add color deletion connections.
- Replace onDeleteClicked operation with ColorsApi.deleteColorById
Task-number: QTBUG-140020
Change-Id: I527143431e8e4fef53fd104040b0c023c7ef0934
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 42c9ee774acce5b9b4718b4aa541de391abd8b43 |
| parent | b7fe94089bbca523384484fb9528f096f853f470 |
| author | Rym Bouabid <rym.bouabid@qt.io> |
| committer | Rym Bouabid <rym.bouabid@qt.io> |
| commit time | Fri, 5 Dec 2025 20:58:41 +0100 |
- M examples/openapi/colorpalette/CMakeLists.txt
- A examples/openapi/colorpalette/ColorPalette/ColorDialogDelete.qml
- M examples/openapi/colorpalette/ColorPalette/ColorView.qml
- A examples/openapi/colorpalette/QtExampleStyle/Button.qml
- M examples/openapi/colorpalette/QtExampleStyle/CMakeLists.txt
- M examples/openapi/colorpalette/icons/REUSE.toml
- A examples/openapi/colorpalette/icons/delete.svg
- M examples/openapi/colorpalette/icons/qt_attribution.json