summaryrefslogtreecommitdiff
path: root/inputmethods/multikey
Side-by-side diff
Diffstat (limited to 'inputmethods/multikey') (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 9ea59a4..9576579 100644
--- a/inputmethods/multikey/configdlg.cpp
+++ b/inputmethods/multikey/configdlg.cpp
@@ -165,5 +165,5 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
}
*/
- keycolor_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
+ keycolor_button->setPalette(QPalette(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt())));
@@ -173,5 +173,5 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
keycolor_pressed_button->setFlat((bool)1);
color = config.readListEntry("keycolor_pressed", QChar(','));
- keycolor_pressed_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
+ keycolor_pressed_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()))));
label = new QLabel(tr("Line Color"), color_box);
@@ -180,5 +180,5 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
keycolor_lines_button->setFlat((bool)1);
color = config.readListEntry("keycolor_lines", QChar(','));
- keycolor_lines_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
+ keycolor_lines_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()))));
@@ -188,5 +188,5 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
textcolor_button->setFlat((bool)1);
color = config.readListEntry("textcolor", QChar(','));
- textcolor_button->setBackgroundColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
+ textcolor_button->setPalette(QPalette((QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()))));