-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 9ea59a4..9576579 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -165,5 +165,5 @@ ConfigDlg::ConfigDlg () : QTabWidget () | |||
165 | } | 165 | } |
166 | */ | 166 | */ |
167 | keycolor_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 167 | keycolor_button->setPalette(QPalette(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()))); |
168 | 168 | ||
169 | 169 | ||
@@ -173,5 +173,5 @@ ConfigDlg::ConfigDlg () : QTabWidget () | |||
173 | keycolor_pressed_button->setFlat((bool)1); | 173 | keycolor_pressed_button->setFlat((bool)1); |
174 | color = config.readListEntry("keycolor_pressed", QChar(',')); | 174 | color = config.readListEntry("keycolor_pressed", QChar(',')); |
175 | keycolor_pressed_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 175 | keycolor_pressed_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())))); |
176 | 176 | ||
177 | label = new QLabel(tr("Line Color"), color_box); | 177 | label = new QLabel(tr("Line Color"), color_box); |
@@ -180,5 +180,5 @@ ConfigDlg::ConfigDlg () : QTabWidget () | |||
180 | keycolor_lines_button->setFlat((bool)1); | 180 | keycolor_lines_button->setFlat((bool)1); |
181 | color = config.readListEntry("keycolor_lines", QChar(',')); | 181 | color = config.readListEntry("keycolor_lines", QChar(',')); |
182 | keycolor_lines_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 182 | keycolor_lines_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())))); |
183 | 183 | ||
184 | 184 | ||
@@ -188,5 +188,5 @@ ConfigDlg::ConfigDlg () : QTabWidget () | |||
188 | textcolor_button->setFlat((bool)1); | 188 | textcolor_button->setFlat((bool)1); |
189 | color = config.readListEntry("textcolor", QChar(',')); | 189 | color = config.readListEntry("textcolor", QChar(',')); |
190 | textcolor_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())); | 190 | textcolor_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())))); |
191 | 191 | ||
192 | 192 | ||