Add part 4 of colorpalette example: Add and update a color


Add Color class marked with QML_SINGLETON to handle instantiation
of a QtOAIColor instance. (same as Credentials)

Note: The code is taken from "Qt Quick Demo - RESTful API client". It
only required minor changes to make it work.

In ColorView.qml:
- Add ColorsApi connections for adding and updating a color.
- Call ColorsAPi updateColor and addColor calls in ColorDialogEditor.

Task-number: QTBUG-140020
Change-Id: I4703f7e7d84c5bbf73d42d8357c136f537988ba8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitd121dd466952fcecaaeadb12db1597ea609a2e96
parent42c9ee774acce5b9b4718b4aa541de391abd8b43
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeFri, 5 Dec 2025 21:26:03 +0100