summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/gui/preferencesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/preferencesdialog.cpp')
-rw-r--r--utils/themeeditor/gui/preferencesdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/themeeditor/gui/preferencesdialog.cpp b/utils/themeeditor/gui/preferencesdialog.cpp
index 2c4acaee84..4ab6fdadcc 100644
--- a/utils/themeeditor/gui/preferencesdialog.cpp
+++ b/utils/themeeditor/gui/preferencesdialog.cpp
@@ -85,13 +85,13 @@ void PreferencesDialog::loadColors()
/* Buttons from the editor group */
settings.beginGroup("SkinDocument");
- fgColor = settings.value("fgColor", Qt::black).value<QColor>();
+ fgColor = settings.value("fgColor", QColor(Qt::black)).value<QColor>();
setButtonColor(ui->fgButton, fgColor);
- bgColor = settings.value("bgColor", Qt::white).value<QColor>();
+ bgColor = settings.value("bgColor", QColor(Qt::white)).value<QColor>();
setButtonColor(ui->bgButton, bgColor);
- errorColor = settings.value("errorColor", Qt::red).value<QColor>();
+ errorColor = settings.value("errorColor", QColor(Qt::red)).value<QColor>();
setButtonColor(ui->errorButton, errorColor);
settings.endGroup();