summaryrefslogtreecommitdiff
path: root/inputmethods
authorhash <hash>2002-08-19 18:03:39 (UTC)
committer hash <hash>2002-08-19 18:03:39 (UTC)
commit719dda9280813d323eebe3d2323271f953ed1144 (patch) (unidiff)
treea36871f188640304551c5b70f09ad1755e5e0a7b /inputmethods
parentd68e038d1ba78a816e60990d5a36d6c52d8e11d3 (diff)
downloadopie-719dda9280813d323eebe3d2323271f953ed1144.zip
opie-719dda9280813d323eebe3d2323271f953ed1144.tar.gz
opie-719dda9280813d323eebe3d2323271f953ed1144.tar.bz2
added sample key color changing
Diffstat (limited to 'inputmethods') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp1
-rw-r--r--inputmethods/multikey/keyboard.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp
index 1e104a6..59a290b 100644
--- a/inputmethods/multikey/configdlg.cpp
+++ b/inputmethods/multikey/configdlg.cpp
@@ -250,10 +250,11 @@ void ConfigDlg::keyColorButtonClicked() {
250 250
251 color[0].setNum(newcolor.red()); 251 color[0].setNum(newcolor.red());
252 color[1].setNum(newcolor.green()); 252 color[1].setNum(newcolor.green());
253 color[2].setNum(newcolor.blue()); 253 color[2].setNum(newcolor.blue());
254 254
255 config.writeEntry("keycolor", color, QChar(',')); 255 config.writeEntry("keycolor", color, QChar(','));
256 config.write();
256 257
257 key_color_button->setBackgroundColor(newcolor); 258 key_color_button->setBackgroundColor(newcolor);
258 emit reloadKeyboard(); 259 emit reloadKeyboard();
259} 260}
diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp
index 68918a6..8280297 100644
--- a/inputmethods/multikey/keyboard.cpp
+++ b/inputmethods/multikey/keyboard.cpp
@@ -545,13 +545,13 @@ void Keyboard::setMapToFile(QString map) {
545 keys = new Keys(); 545 keys = new Keys();
546 546
547 repaint(FALSE); 547 repaint(FALSE);
548 548
549} 549}
550 550
551/* Keybaord::setColor {{{1 */ 551/* Keybaord::reloadKeyboard {{{1 */
552void Keyboard::reloadKeyboard() { 552void Keyboard::reloadKeyboard() {
553 553
554 // reload colors and redraw 554 // reload colors and redraw
555 loadKeyboardColors(); 555 loadKeyboardColors();
556 repaint(); 556 repaint();
557 557