summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp8
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
@@ -304,9 +304,9 @@ void ConfigDlg::keyColorClicked() {
config.writeEntry("keycolor", color, QChar(','));
config.write();
- keycolor_button->setBackgroundColor(newcolor);
+ keycolor_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}
void ConfigDlg::keyColorPressedClicked() {
@@ -323,9 +323,9 @@ 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() {
@@ -342,9 +342,9 @@ 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() {
@@ -361,7 +361,7 @@ void ConfigDlg::textColorClicked() {
config.writeEntry("textcolor", color, QChar(','));
config.write();
- textcolor_button->setBackgroundColor(newcolor);
+ textcolor_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}