summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/configdlg.cpp
Unidiff
Diffstat (limited to 'inputmethods/multikey/configdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp11
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 @@
1/* 1/*
2 * TODO 2 * TODO
3 * make a font selection thing (size too) 3 * make a font selection thing (size too)
4 * make vertical keys possible
5 * make a keymap editor 4 * make a keymap editor
5 * make keys translucent
6 * make vertical keys possible
6 * 7 *
7 * 8 *
8 */ 9 */
9 10
10#include <qpe/qpeapplication.h> 11#include <qpe/qpeapplication.h>
11#include <qpe/config.h> 12#include <qpe/config.h>
@@ -245,12 +246,18 @@ void ConfigDlg::repeatTog() {
245 config.setGroup ("general"); 246 config.setGroup ("general");
246 config.writeEntry ("useRepeat", repeat_button->isChecked()); // default closed 247 config.writeEntry ("useRepeat", repeat_button->isChecked()); // default closed
247 248
248 emit repeatToggled(repeat_button->isChecked()); 249 emit repeatToggled(repeat_button->isChecked());
249} 250}
250 251
252void ConfigDlg::closeEvent(QCloseEvent *) {
253
254 // tell the parent it was closed, so delete me
255 emit configDlgClosed();
256}
257
251// ConfigDlg::setMap {{{1 258// ConfigDlg::setMap {{{1
252 259
253/* 260/*
254 * the index is kinda screwy, because in the config file, index 0 is just the 261 * the index is kinda screwy, because in the config file, index 0 is just the
255 * first element in the QStringList, but here it's the "Current Language" 262 * first element in the QStringList, but here it's the "Current Language"
256 * listItem. therefor you have to minus one to the index before you access it. 263 * listItem. therefor you have to minus one to the index before you access it.
@@ -264,13 +271,13 @@ void ConfigDlg::setMap(int index) {
264 remove_button->setDisabled(true); 271 remove_button->setDisabled(true);
265 emit setMapToDefault(); 272 emit setMapToDefault();
266 } 273 }
267 else if ((uint)index <= default_maps.count()) { 274 else if ((uint)index <= default_maps.count()) {
268 275
269 remove_button->setDisabled(true); 276 remove_button->setDisabled(true);
270 emit setMapToFile(QPEApplication::qpeDir() + "/share/multikey/" + default_maps[index - 1]); 277 emit setMapToFile(QPEApplication::qpeDir() + "share/multikey/" + default_maps[index - 1]);
271 278
272 } else { 279 } else {
273 280
274 remove_button->setEnabled(true); 281 remove_button->setEnabled(true);
275 emit setMapToFile(custom_maps[index - default_maps.count() - 1]); 282 emit setMapToFile(custom_maps[index - default_maps.count() - 1]);
276 } 283 }