diff --git a/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
index 58f0b89ace64ffbf1462cba853291c2b27113ec1..5c53e588720bd81a549c6ebbe51b5cea1b6e0bf7 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
@@ -403,9 +403,16 @@ static inline QColor invertColor(const QColor color)
     return c;
 }
 
-GradientLine::GradientLine(QWidget *parent) : QWidget(parent),  m_activeColor(Qt::black), m_gradientName("gradient"),
-                                                                m_dragActive(false), m_yOffset(0), m_create(false),
-                                                                m_active(false), m_colorIndex(0), m_dragOff(false)
+GradientLine::GradientLine(QWidget *parent) :
+        QWidget(parent),
+        m_activeColor(Qt::black),
+        m_gradientName("gradient"),
+        m_colorIndex(0),
+        m_dragActive(false),
+        m_yOffset(0),
+        m_create(false),
+        m_active(false),
+        m_dragOff(false)
 {
     setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed));
     setFocusPolicy(Qt::StrongFocus);