Diffstat (limited to 'inputmethods/multikey/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 26c9233..a8206b7 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp @@ -1,11 +1,12 @@ /* * TODO * make a font selection thing (size too) - * make vertical keys possible * make a keymap editor + * make keys translucent + * make vertical keys possible * * */ #include <qpe/qpeapplication.h> #include <qpe/config.h> @@ -245,12 +246,18 @@ void ConfigDlg::repeatTog() { config.setGroup ("general"); config.writeEntry ("useRepeat", repeat_button->isChecked()); // default closed emit repeatToggled(repeat_button->isChecked()); } +void ConfigDlg::closeEvent(QCloseEvent *) { + + // tell the parent it was closed, so delete me + emit configDlgClosed(); +} + // ConfigDlg::setMap {{{1 /* * the index is kinda screwy, because in the config file, index 0 is just the * first element in the QStringList, but here it's the "Current Language" * listItem. therefor you have to minus one to the index before you access it. @@ -264,13 +271,13 @@ void ConfigDlg::setMap(int index) { remove_button->setDisabled(true); emit setMapToDefault(); } else if ((uint)index <= default_maps.count()) { remove_button->setDisabled(true); - emit setMapToFile(QPEApplication::qpeDir() + "/share/multikey/" + default_maps[index - 1]); + emit setMapToFile(QPEApplication::qpeDir() + "share/multikey/" + default_maps[index - 1]); } else { remove_button->setEnabled(true); emit setMapToFile(custom_maps[index - default_maps.count() - 1]); } |