author | hash <hash> | 2002-08-15 11:31:32 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-15 11:31:32 (UTC) |
commit | a7fed733255d72bfca9ed0962c5ea190e0f6200b (patch) (unidiff) | |
tree | 2b352019c995e52a546988fc547af91bed1d4574 | |
parent | dd6319831448313a03f2a80e08d5e170a511c676 (diff) | |
download | opie-a7fed733255d72bfca9ed0962c5ea190e0f6200b.zip opie-a7fed733255d72bfca9ed0962c5ea190e0f6200b.tar.gz opie-a7fed733255d72bfca9ed0962c5ea190e0f6200b.tar.bz2 |
fixed that thing
-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 6ec8d0e..f23bf1c 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -26,55 +26,55 @@ | |||
26 | #include "configdlg.h" | 26 | #include "configdlg.h" |
27 | #include "keyboard.h" | 27 | #include "keyboard.h" |
28 | 28 | ||
29 | ConfigDlg::ConfigDlg () : QTabWidget () | 29 | ConfigDlg::ConfigDlg () : QTabWidget () |
30 | { | 30 | { |
31 | setCaption( tr("Multikey Configuration") ); | 31 | setCaption( tr("Multikey Configuration") ); |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * 'general config' tab | 34 | * 'general config' tab |
35 | */ | 35 | */ |
36 | 36 | ||
37 | QVBox *gen_box = new QVBox (this); | 37 | QVBox *gen_box = new QVBox (this); |
38 | gen_box->setMargin(3); | 38 | gen_box->setMargin(3); |
39 | addTab(gen_box, tr("General Settings")); | 39 | addTab(gen_box, tr("General Settings")); |
40 | 40 | ||
41 | QGroupBox *map_group = new QGroupBox (2, Qt::Horizontal, tr("Keymap File"), gen_box); | 41 | QGroupBox *map_group = new QGroupBox (2, Qt::Horizontal, tr("Keymap File"), gen_box); |
42 | 42 | ||
43 | map_combo = new QComboBox ((bool)0, map_group); | 43 | map_combo = new QComboBox ((bool)0, map_group); |
44 | map_combo->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); | 44 | map_combo->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); |
45 | 45 | ||
46 | QString cur(tr("Current Language")); | 46 | QString cur(tr("Current Language")); |
47 | map_combo->insertItem(cur); | 47 | map_combo->insertItem(cur); |
48 | connect(map_combo, SIGNAL(activated(int)), SLOT(setMap(int))); | 48 | connect(map_combo, SIGNAL(activated(int)), SLOT(setMap(int))); |
49 | 49 | ||
50 | QString ko(tr("/opt/opie/share/multikey/ko.keymap")); | 50 | QString ko(tr(QPEApplication::qpeDir() + "/share/multikey/ko.keymap")); |
51 | map_combo->insertItem(ko); | 51 | map_combo->insertItem(ko); |
52 | 52 | ||
53 | QString en(tr("/opt/opie/share/multikey/en.keymap")); | 53 | QString en(tr(QPEApplication::qpeDir() + "/share/multikey/en.keymap")); |
54 | map_combo->insertItem(en); | 54 | map_combo->insertItem(en); |
55 | 55 | ||
56 | QString de(tr("/opt/opie/share/multikey/de.keymap")); | 56 | QString de(tr(QPEApplication::qpeDir() + "/share/multikey/de.keymap")); |
57 | map_combo->insertItem(de); | 57 | map_combo->insertItem(de); |
58 | 58 | ||
59 | QPushButton *button = new QPushButton(tr("Browse..."), map_group); | 59 | QPushButton *button = new QPushButton(tr("Browse..."), map_group); |
60 | button->setFlat((bool)1); | 60 | button->setFlat((bool)1); |
61 | 61 | ||
62 | pick_button = new QCheckBox(tr("Pickboard"), gen_box); | 62 | pick_button = new QCheckBox(tr("Pickboard"), gen_box); |
63 | 63 | ||
64 | Config config ("multikey"); | 64 | Config config ("multikey"); |
65 | config.setGroup ("pickboard"); | 65 | config.setGroup ("pickboard"); |
66 | bool pick_open = config.readBoolEntry ("open", "0"); // default closed | 66 | bool pick_open = config.readBoolEntry ("open", "0"); // default closed |
67 | if (pick_open) { | 67 | if (pick_open) { |
68 | 68 | ||
69 | pick_button->setChecked(true); | 69 | pick_button->setChecked(true); |
70 | } | 70 | } |
71 | 71 | ||
72 | // by connecting it after checking it, the signal isn't emmited | 72 | // by connecting it after checking it, the signal isn't emmited |
73 | connect (pick_button, SIGNAL(clicked()), this, SLOT(pickTog())); | 73 | connect (pick_button, SIGNAL(clicked()), this, SLOT(pickTog())); |
74 | 74 | ||
75 | /* | 75 | /* |
76 | * 'color' tab | 76 | * 'color' tab |
77 | */ | 77 | */ |
78 | 78 | ||
79 | QGrid *color_box = new QGrid(2, this); | 79 | QGrid *color_box = new QGrid(2, this); |
80 | color_box->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); | 80 | color_box->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); |