From 4aec7d14d57b10f7fc503644d3cad44d9f166322 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 24 May 2018 10:24:46 +0200 Subject: StatusIndicatorStyle: fix usage of ctx.createRadialGradient() be4c4877b35ad1b6983cf194e61f0dad1d123af5 fixed Context2D's createRadialGradient() function, so our usage of it has to be updated accordingly. This patch results in the same visual result as it was originally (before the auto test failure). Task-number: QTBUG-68301 Change-Id: Ibd8aa24e84ceecccf25d7656350738a38cd03e24 Reviewed-by: Andy Shaw Reviewed-by: J-P Nurmi --- src/controls/Styles/Base/StatusIndicatorStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/controls/Styles/Base/StatusIndicatorStyle.qml b/src/controls/Styles/Base/StatusIndicatorStyle.qml index c12ab507..a334aa62 100644 --- a/src/controls/Styles/Base/StatusIndicatorStyle.qml +++ b/src/controls/Styles/Base/StatusIndicatorStyle.qml @@ -204,7 +204,7 @@ Style { gradient.addColorStop(1.0, "transparent"); } else { // Draw the radial shine. - gradient = ctx.createRadialGradient(width / 2, height / 2, width * 0.25, width / 2, height / 2, width * 0.25); + gradient = ctx.createRadialGradient(width / 2, height / 2, 0, width / 2, height / 2, width * 0.5 /* (same as height) */); gradient.addColorStop(0.0, Qt.lighter(baseColor, 1.4)); gradient.addColorStop(1.0, "transparent"); } -- cgit v1.2.1