diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-08-25 14:34:36 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-08-26 07:18:56 +0000 |
commit | 37f410e0bda8099ba4e16b0cc515bd232326be56 (patch) | |
tree | cc33ba7613b05110607228f7ba4ef41d71969145 | |
parent | 5903b961c6364544ea122a3cba77216c6aadee5b (diff) |
Use predefined color instead of creation from string
Change-Id: I64687d96e38044577870b8dfe60fd7b3a631180d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r-- | src/quick/items/context2d/qquickcontext2d_p.h | 4 | ||||
-rw-r--r-- | src/quick/items/qquickrectangle.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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) diff --git a/src/quick/items/qquickrectangle.cpp b/src/quick/items/qquickrectangle.cpp index 223976c32f..9e747f2c47 100644 --- a/src/quick/items/qquickrectangle.cpp +++ b/src/quick/items/qquickrectangle.cpp @@ -72,7 +72,7 @@ QT_BEGIN_NAMESPACE QQuickPen::QQuickPen(QObject *parent) : QObject(parent) , m_width(1) - , m_color("#000000") + , m_color(Qt::black) , m_aligned(true) , m_valid(false) { |