From bafa5a14dde4415b13de3f3d44af6333538deff5 Mon Sep 17 00:00:00 2001
From: Eirik Aavitsland
Date: Tue, 26 Jun 2018 17:26:29 +0200
Subject: Add demo of the new QGradient presets to the gradients example
In the gradients example, allow the user to select and show
QGradient's named presets.
Change-Id: I40bc6cbe3a0316ce49d67d63511881b6f6112574
Reviewed-by: Simon Hausmann
---
examples/widgets/painting/gradients/gradients.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'examples/widgets/painting/gradients/gradients.html')
diff --git a/examples/widgets/painting/gradients/gradients.html b/examples/widgets/painting/gradients/gradients.html
index 1ea2c0ed6c..82c449035f 100644
--- a/examples/widgets/painting/gradients/gradients.html
+++ b/examples/widgets/painting/gradients/gradients.html
@@ -24,8 +24,12 @@ green and blue components while the last defines the alpha of the
gradient. You can move points, and add new ones, by clicking with the left
mouse button, and remove points by clicking with the right button.
-There are three default configurations available at the bottom of
+
There are three example configurations available at the bottom of
the page that are provided as suggestions on how a color table could be
configured.
+Qt also provides a suite of named gradient presets. They are based on the
+free WebGradients collection. Click on the name in the Presets box to show the
+gradient. Use the arrow buttons to browse through the available presets.
+