From 27bd65913943f589b6c94d85f9d96a73de94a24c Mon Sep 17 00:00:00 2001 From: Balazs Egedi Date: Wed, 14 Jul 2021 14:27:28 +0200 Subject: Implement QML Color Dialog Quick Controls 2 does not contain Color Dialog, the Labs version does not run on every OS. Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: Idfb1fd017a7f7b74c4ad135575a9727607dacac4 Reviewed-by: Michal Klocek --- .../customdialogs/doc/images/customdialogs-color1.png | Bin 0 -> 9729 bytes .../webengine/customdialogs/doc/src/customdialogs.qdoc | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 examples/webengine/customdialogs/doc/images/customdialogs-color1.png (limited to 'examples/webengine') diff --git a/examples/webengine/customdialogs/doc/images/customdialogs-color1.png b/examples/webengine/customdialogs/doc/images/customdialogs-color1.png new file mode 100644 index 000000000..7f0492f87 Binary files /dev/null and b/examples/webengine/customdialogs/doc/images/customdialogs-color1.png differ diff --git a/examples/webengine/customdialogs/doc/src/customdialogs.qdoc b/examples/webengine/customdialogs/doc/src/customdialogs.qdoc index b75417456..a07c92153 100644 --- a/examples/webengine/customdialogs/doc/src/customdialogs.qdoc +++ b/examples/webengine/customdialogs/doc/src/customdialogs.qdoc @@ -253,7 +253,7 @@ \section2 Color Dialog Requests - Currently, Qt WebEngine does not provide Color Dialog, a custom dialog should be implemented. + \image customdialogs-color1.png \l [QML]{ColorDialogRequest} is a request object that is passed as a parameter of the WebEngineView::colorDialogRequested signal: @@ -273,8 +273,8 @@ \printline } We use the \c onColorDialogRequested signal handler to check whether - we should use the default color picker dialog (which currently is not provided). - If not, we accept the request and switch the view to show the \c ColorPickerForm: + we should use the default color picker dialog. If not, we accept the request + and switch the view to show the \c ColorPickerForm: \image customdialogs-color2.png -- cgit v1.2.1