summaryrefslogtreecommitdiff
authorhash <hash>2002-08-23 18:28:03 (UTC)
committer hash <hash>2002-08-23 18:28:03 (UTC)
commit4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e (patch) (side-by-side diff)
tree95731dcac369953c863e93ba0df3c2e90abff7d3
parent3e37e49a35b786e5da747d4e19e898fb7135533c (diff)
downloadopie-4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e.zip
opie-4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e.tar.gz
opie-4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e.tar.bz2
oops, fixed bug in color buttons
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
@@ -296,72 +296,72 @@ void ConfigDlg::keyColorClicked() {
QStringList color = config.readListEntry("keycolor", QChar(','));
QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
color[0].setNum(newcolor.red());
color[1].setNum(newcolor.green());
color[2].setNum(newcolor.blue());
config.writeEntry("keycolor", color, QChar(','));
config.write();
- keycolor_button->setBackgroundColor(newcolor);
+ keycolor_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}
void ConfigDlg::keyColorPressedClicked() {
Config config ("multikey");
config.setGroup ("colors");
QStringList color = config.readListEntry("keycolor_pressed", QChar(','));
QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
color[0].setNum(newcolor.red());
color[1].setNum(newcolor.green());
color[2].setNum(newcolor.blue());
config.writeEntry("keycolor_pressed", color, QChar(','));
config.write();
- keycolor_pressed_button->setBackgroundColor(newcolor);
+ keycolor_pressed_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}
void ConfigDlg::keyColorLinesClicked() {
Config config ("multikey");
config.setGroup ("colors");
QStringList color = config.readListEntry("keycolor_lines", QChar(','));
QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
color[0].setNum(newcolor.red());
color[1].setNum(newcolor.green());
color[2].setNum(newcolor.blue());
config.writeEntry("keycolor_lines", color, QChar(','));
config.write();
- keycolor_lines_button->setBackgroundColor(newcolor);
+ keycolor_lines_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}
void ConfigDlg::textColorClicked() {
Config config ("multikey");
config.setGroup ("colors");
QStringList color = config.readListEntry("textcolor", QChar(','));
QColor newcolor = OColorDialog::getColor(QColor(color[0].toInt(), color[1].toInt(), color[2].toInt()));
color[0].setNum(newcolor.red());
color[1].setNum(newcolor.green());
color[2].setNum(newcolor.blue());
config.writeEntry("textcolor", color, QChar(','));
config.write();
- textcolor_button->setBackgroundColor(newcolor);
+ textcolor_button->setPalette(QPalette(newcolor));
emit reloadKeyboard();
}