summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp16
-rw-r--r--inputmethods/multikey/opie-multikey.control2
2 files changed, 7 insertions, 11 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp
index c4f7413..157714c 100644
--- a/inputmethods/multikey/configdlg.cpp
+++ b/inputmethods/multikey/configdlg.cpp
@@ -22,4 +22,6 @@
22#include <qlistbox.h> 22#include <qlistbox.h>
23#include <qstringlist.h> 23#include <qstringlist.h>
24#include <opie/ofiledialog.h>
25#include <iostream.h>
24#include "configdlg.h" 26#include "configdlg.h"
25#include "keyboard.h" 27#include "keyboard.h"
@@ -59,14 +61,4 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
59 connect(keymaps, SIGNAL(highlighted(int)), SLOT(setMap(int))); 61 connect(keymaps, SIGNAL(highlighted(int)), SLOT(setMap(int)));
60 62
61 /*
62 QString ko(QPEApplication::qpeDir() + "/share/multikey/ko.keymap");
63 keymaps->insertItem(ko);
64
65 QString en(QPEApplication::qpeDir() + "/share/multikey/en.keymap");
66 keymaps->insertItem(en);
67
68 QString de(QPEApplication::qpeDir() + "/share/multikey/de.keymap");
69 keymaps->insertItem(de);
70 */
71 63
72 QGrid *add_remove_grid = new QGrid(2, map_group); 64 QGrid *add_remove_grid = new QGrid(2, map_group);
@@ -76,4 +68,5 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
76 add_button = new QPushButton(tr("Add"), add_remove_grid); 68 add_button = new QPushButton(tr("Add"), add_remove_grid);
77 add_button->setFlat((bool)1); 69 add_button->setFlat((bool)1);
70 connect(add_button, SIGNAL(clicked()), SLOT(addMap()));
78 71
79 remove_button = new QPushButton(tr("Remove"), add_remove_grid); 72 remove_button = new QPushButton(tr("Remove"), add_remove_grid);
@@ -160,4 +153,7 @@ void ConfigDlg::setMap(int index) {
160void ConfigDlg::addMap() { 153void ConfigDlg::addMap() {
161 154
155 QString map = OFileDialog::getOpenFileName(2, QPEApplication::qpeDir() + "/share/multikey");
156 cout << "added file " << map << "!\n";
157
162} 158}
163 159
diff --git a/inputmethods/multikey/opie-multikey.control b/inputmethods/multikey/opie-multikey.control
index 42df4cd..ce39f36 100644
--- a/inputmethods/multikey/opie-multikey.control
+++ b/inputmethods/multikey/opie-multikey.control
@@ -1,3 +1,3 @@
1Files: plugins/inputmethods/libqmultikey.so* 1Files: plugins/inputmethods/libqmultikey.so* share/multikey/*
2Priority: optional 2Priority: optional
3Section: opie/inputmethods 3Section: opie/inputmethods