diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-12 14:25:02 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-20 16:08:39 +0000 |
commit | f867450b0b9aba7aa7eb7e344d24229ffed39794 (patch) | |
tree | e382dcddec79d0682c6be9b4ee89937dee0ec9c0 /src/imports/controls/universal/qquickuniversalprogressstrip.cpp | |
parent | 23b820d018adeb5b07704e3a1ef5ea23a90c8af7 (diff) |
Universal: follow the Qt coding style
Return early to keep the indentation low. This style was already used
in many areas, so now the same style is consistently used everywhere.
Change-Id: I6db941be07b153c7448dd418256c792186f71e58
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/universal/qquickuniversalprogressstrip.cpp')
-rw-r--r-- | src/imports/controls/universal/qquickuniversalprogressstrip.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/imports/controls/universal/qquickuniversalprogressstrip.cpp b/src/imports/controls/universal/qquickuniversalprogressstrip.cpp index c4fab7ae..c22af2b6 100644 --- a/src/imports/controls/universal/qquickuniversalprogressstrip.cpp +++ b/src/imports/controls/universal/qquickuniversalprogressstrip.cpp @@ -241,11 +241,12 @@ QColor QQuickUniversalProgressStrip::color() const void QQuickUniversalProgressStrip::setColor(const QColor &color) { - if (m_color != color) { - m_color = color; - update(); - emit colorChanged(); - } + if (m_color == color) + return; + + m_color = color; + update(); + emit colorChanged(); } QSGNode *QQuickUniversalProgressStrip::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) |