-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 3 | ||||
-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 68c31be..6ec8d0e 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp @@ -44,24 +44,27 @@ ConfigDlg::ConfigDlg () : QTabWidget () map_combo->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); QString cur(tr("Current Language")); map_combo->insertItem(cur); connect(map_combo, SIGNAL(activated(int)), SLOT(setMap(int))); QString ko(tr("/opt/opie/share/multikey/ko.keymap")); map_combo->insertItem(ko); QString en(tr("/opt/opie/share/multikey/en.keymap")); map_combo->insertItem(en); + QString de(tr("/opt/opie/share/multikey/de.keymap")); + map_combo->insertItem(de); + QPushButton *button = new QPushButton(tr("Browse..."), map_group); button->setFlat((bool)1); pick_button = new QCheckBox(tr("Pickboard"), gen_box); Config config ("multikey"); config.setGroup ("pickboard"); bool pick_open = config.readBoolEntry ("open", "0"); // default closed if (pick_open) { pick_button->setChecked(true); } diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index 1d91b82..b793391 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -446,25 +446,25 @@ void Keyboard::clearHighlight() pressedKeyCol = -1; QPainter p(this); drawKeyboard(p, tmpRow, tmpCol); } } /* Keyboard::sizeHint {{{1 */ QSize Keyboard::sizeHint() const { QFontMetrics fm=fontMetrics(); - int keyHeight = fm.lineSpacing(); + int keyHeight = fm.lineSpacing() + 2; return QSize( 240, keyHeight * 5 + (usePicks ? picks->sizeHint().height() : 0) + 1); } void Keyboard::resetState() { schar = mchar = echar = 0; picks->resetState(); } /* Keyboard::togglePickboard {{{1 */ |