aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2017-04-26 14:32:02 +0200
committerTim Jenssen <tim.jenssen@qt.io>2017-04-26 14:18:48 +0000
commit0de18abbc2b7a355ea31b86c5fed0aa7eb467105 (patch)
tree98a8d06c0447e27f26a3135a234fd572be524566 /src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
parent5ca34bd3f3c05a5b20818b7cadb584f8a6ff9937 (diff)
QmlDesigner: use initializer lists
Change-Id: Ibdc46d30ad3f2b703d4cbdd796a1032030bd17cd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp b/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
index a4064d7a71d..f763aa9b5a2 100644
--- a/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
@@ -81,11 +81,11 @@ void BackgroundAction::emitBackgroundChanged(int index)
QList<QColor> BackgroundAction::colors()
{
static QColor alphaZero(Qt::transparent);
- static QList<QColor> colorList = QList<QColor>() << alphaZero
- << QColor(Qt::black)
- << QColor(Qt::darkGray)
- << QColor(Qt::lightGray)
- << QColor(Qt::white);
+ static QList<QColor> colorList = {alphaZero,
+ QColor(Qt::black),
+ QColor(Qt::darkGray),
+ QColor(Qt::lightGray),
+ QColor(Qt::white)};
return colorList;