-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 9576579..10bc611 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -302,13 +302,13 @@ void ConfigDlg::keyColorClicked() { | |||
302 | color[1].setNum(newcolor.green()); | 302 | color[1].setNum(newcolor.green()); |
303 | color[2].setNum(newcolor.blue()); | 303 | color[2].setNum(newcolor.blue()); |
304 | 304 | ||
305 | config.writeEntry("keycolor", color, QChar(',')); | 305 | config.writeEntry("keycolor", color, QChar(',')); |
306 | config.write(); | 306 | config.write(); |
307 | 307 | ||
308 | keycolor_button->setBackgroundColor(newcolor); | 308 | keycolor_button->setPalette(QPalette(newcolor)); |
309 | emit reloadKeyboard(); | 309 | emit reloadKeyboard(); |
310 | } | 310 | } |
311 | void ConfigDlg::keyColorPressedClicked() { | 311 | void ConfigDlg::keyColorPressedClicked() { |
312 | 312 | ||
313 | Config config ("multikey"); | 313 | Config config ("multikey"); |
314 | config.setGroup ("colors"); | 314 | config.setGroup ("colors"); |
@@ -321,13 +321,13 @@ void ConfigDlg::keyColorPressedClicked() { | |||
321 | color[1].setNum(newcolor.green()); | 321 | color[1].setNum(newcolor.green()); |
322 | color[2].setNum(newcolor.blue()); | 322 | color[2].setNum(newcolor.blue()); |
323 | 323 | ||
324 | config.writeEntry("keycolor_pressed", color, QChar(',')); | 324 | config.writeEntry("keycolor_pressed", color, QChar(',')); |
325 | config.write(); | 325 | config.write(); |
326 | 326 | ||
327 | keycolor_pressed_button->setBackgroundColor(newcolor); | 327 | keycolor_pressed_button->setPalette(QPalette(newcolor)); |
328 | emit reloadKeyboard(); | 328 | emit reloadKeyboard(); |
329 | } | 329 | } |
330 | void ConfigDlg::keyColorLinesClicked() { | 330 | void ConfigDlg::keyColorLinesClicked() { |
331 | 331 | ||
332 | Config config ("multikey"); | 332 | Config config ("multikey"); |
333 | config.setGroup ("colors"); | 333 | config.setGroup ("colors"); |
@@ -340,13 +340,13 @@ void ConfigDlg::keyColorLinesClicked() { | |||
340 | color[1].setNum(newcolor.green()); | 340 | color[1].setNum(newcolor.green()); |
341 | color[2].setNum(newcolor.blue()); | 341 | color[2].setNum(newcolor.blue()); |
342 | 342 | ||
343 | config.writeEntry("keycolor_lines", color, QChar(',')); | 343 | config.writeEntry("keycolor_lines", color, QChar(',')); |
344 | config.write(); | 344 | config.write(); |
345 | 345 | ||
346 | keycolor_lines_button->setBackgroundColor(newcolor); | 346 | keycolor_lines_button->setPalette(QPalette(newcolor)); |
347 | emit reloadKeyboard(); | 347 | emit reloadKeyboard(); |
348 | } | 348 | } |
349 | void ConfigDlg::textColorClicked() { | 349 | void ConfigDlg::textColorClicked() { |
350 | 350 | ||
351 | Config config ("multikey"); | 351 | Config config ("multikey"); |
352 | config.setGroup ("colors"); | 352 | config.setGroup ("colors"); |
@@ -359,9 +359,9 @@ void ConfigDlg::textColorClicked() { | |||
359 | color[1].setNum(newcolor.green()); | 359 | color[1].setNum(newcolor.green()); |
360 | color[2].setNum(newcolor.blue()); | 360 | color[2].setNum(newcolor.blue()); |
361 | 361 | ||
362 | config.writeEntry("textcolor", color, QChar(',')); | 362 | config.writeEntry("textcolor", color, QChar(',')); |
363 | config.write(); | 363 | config.write(); |
364 | 364 | ||
365 | textcolor_button->setBackgroundColor(newcolor); | 365 | textcolor_button->setPalette(QPalette(newcolor)); |
366 | emit reloadKeyboard(); | 366 | emit reloadKeyboard(); |
367 | } | 367 | } |