summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/configdlg.cpp
Side-by-side diff
Diffstat (limited to 'inputmethods/multikey/configdlg.cpp') (more/less context) (ignore 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,17 +1,18 @@
/*
* 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>
#include <qwidget.h>
#include <qdialog.h>
#include <qtabwidget.h>
#include <qvbox.h>
#include <qgrid.h>
@@ -239,44 +240,50 @@ void ConfigDlg::pickTog() {
emit pickboardToggled(pick_button->isChecked());
}
void ConfigDlg::repeatTog() {
Config config ("multikey");
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.
*
*/
void ConfigDlg::setMap(int index) {
if (index == 0) {
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]);
}
}
// ConfigDlg::addMap() {{{1
void ConfigDlg::addMap() {
QString map = OFileDialog::getOpenFileName(1, QDir::home().absPath());