From 4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e Mon Sep 17 00:00:00 2001 From: hash Date: Fri, 23 Aug 2002 18:28:03 +0000 Subject: oops, fixed bug in color buttons --- (limited to 'inputmethods/multikey') 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 @@ -305,7 +305,7 @@ void ConfigDlg::keyColorClicked() { config.writeEntry("keycolor", color, QChar(',')); config.write(); - keycolor_button->setBackgroundColor(newcolor); + keycolor_button->setPalette(QPalette(newcolor)); emit reloadKeyboard(); } void ConfigDlg::keyColorPressedClicked() { @@ -324,7 +324,7 @@ void ConfigDlg::keyColorPressedClicked() { config.writeEntry("keycolor_pressed", color, QChar(',')); config.write(); - keycolor_pressed_button->setBackgroundColor(newcolor); + keycolor_pressed_button->setPalette(QPalette(newcolor)); emit reloadKeyboard(); } void ConfigDlg::keyColorLinesClicked() { @@ -343,7 +343,7 @@ void ConfigDlg::keyColorLinesClicked() { config.writeEntry("keycolor_lines", color, QChar(',')); config.write(); - keycolor_lines_button->setBackgroundColor(newcolor); + keycolor_lines_button->setPalette(QPalette(newcolor)); emit reloadKeyboard(); } void ConfigDlg::textColorClicked() { @@ -362,6 +362,6 @@ void ConfigDlg::textColorClicked() { config.writeEntry("textcolor", color, QChar(',')); config.write(); - textcolor_button->setBackgroundColor(newcolor); + textcolor_button->setPalette(QPalette(newcolor)); emit reloadKeyboard(); } -- cgit v0.9.0.2