aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/backgroundaction.cpp
diff options
context:
space:
mode:
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 a4064d7a71..f763aa9b5a 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;