From 37f410e0bda8099ba4e16b0cc515bd232326be56 Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Thu, 25 Aug 2016 14:34:36 +0300 Subject: Use predefined color instead of creation from string Change-Id: I64687d96e38044577870b8dfe60fd7b3a631180d Reviewed-by: Shawn Rutledge --- src/quick/items/context2d/qquickcontext2d_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/items/context2d') diff --git a/src/quick/items/context2d/qquickcontext2d_p.h b/src/quick/items/context2d/qquickcontext2d_p.h index cfb62ee052..b526c8320d 100644 --- a/src/quick/items/context2d/qquickcontext2d_p.h +++ b/src/quick/items/context2d/qquickcontext2d_p.h @@ -126,8 +126,8 @@ public: struct State { State() - : strokeStyle(QColor("#000000")) - , fillStyle(QColor("#000000")) + : strokeStyle(QColor(Qt::black)) + , fillStyle(QColor(Qt::black)) , fillPatternRepeatX(false) , fillPatternRepeatY(false) , strokePatternRepeatX(false) -- cgit v1.2.3