author | hash <hash> | 2002-08-15 11:19:45 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-15 11:19:45 (UTC) |
commit | 04a632ea5dd5e5f5a696e53b9c7870247ccaa83c (patch) (unidiff) | |
tree | b17fab3cebe6316ef08240fb93670a9ab73d2185 /inputmethods/multikey/keyboard.cpp | |
parent | e7e645b74096ec754db314d2bfc04a1bbb8e1d00 (diff) | |
download | opie-04a632ea5dd5e5f5a696e53b9c7870247ccaa83c.zip opie-04a632ea5dd5e5f5a696e53b9c7870247ccaa83c.tar.gz opie-04a632ea5dd5e5f5a696e53b9c7870247ccaa83c.tar.bz2 |
made the keysize a little larger
Diffstat (limited to 'inputmethods/multikey/keyboard.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
@@ -434,49 +434,49 @@ void Keyboard::repeat() | |||
434 | 434 | ||
435 | repeatTimer->start( 200 ); | 435 | repeatTimer->start( 200 ); |
436 | emit key( unicode, 0, modifiers, true, true ); | 436 | emit key( unicode, 0, modifiers, true, true ); |
437 | } | 437 | } |
438 | 438 | ||
439 | void Keyboard::clearHighlight() | 439 | void Keyboard::clearHighlight() |
440 | { | 440 | { |
441 | if ( pressedKeyRow >= 0 && pressedKeyCol >= 0) { | 441 | if ( pressedKeyRow >= 0 && pressedKeyCol >= 0) { |
442 | int tmpRow = pressedKeyRow; | 442 | int tmpRow = pressedKeyRow; |
443 | int tmpCol = pressedKeyCol; | 443 | int tmpCol = pressedKeyCol; |
444 | 444 | ||
445 | pressedKeyRow = -1; | 445 | pressedKeyRow = -1; |
446 | pressedKeyCol = -1; | 446 | pressedKeyCol = -1; |
447 | 447 | ||
448 | QPainter p(this); | 448 | QPainter p(this); |
449 | drawKeyboard(p, tmpRow, tmpCol); | 449 | drawKeyboard(p, tmpRow, tmpCol); |
450 | } | 450 | } |
451 | } | 451 | } |
452 | 452 | ||
453 | 453 | ||
454 | /* Keyboard::sizeHint {{{1 */ | 454 | /* Keyboard::sizeHint {{{1 */ |
455 | QSize Keyboard::sizeHint() const | 455 | QSize Keyboard::sizeHint() const |
456 | { | 456 | { |
457 | QFontMetrics fm=fontMetrics(); | 457 | QFontMetrics fm=fontMetrics(); |
458 | int keyHeight = fm.lineSpacing(); | 458 | int keyHeight = fm.lineSpacing() + 2; |
459 | 459 | ||
460 | return QSize( 240, keyHeight * 5 + (usePicks ? picks->sizeHint().height() : 0) + 1); | 460 | return QSize( 240, keyHeight * 5 + (usePicks ? picks->sizeHint().height() : 0) + 1); |
461 | } | 461 | } |
462 | 462 | ||
463 | 463 | ||
464 | void Keyboard::resetState() | 464 | void Keyboard::resetState() |
465 | { | 465 | { |
466 | schar = mchar = echar = 0; | 466 | schar = mchar = echar = 0; |
467 | picks->resetState(); | 467 | picks->resetState(); |
468 | } | 468 | } |
469 | 469 | ||
470 | /* Keyboard::togglePickboard {{{1 */ | 470 | /* Keyboard::togglePickboard {{{1 */ |
471 | void Keyboard::togglePickboard(bool on_off) | 471 | void Keyboard::togglePickboard(bool on_off) |
472 | { | 472 | { |
473 | usePicks = on_off; | 473 | usePicks = on_off; |
474 | if (usePicks) { | 474 | if (usePicks) { |
475 | picks->show(); | 475 | picks->show(); |
476 | //move(x(), y() - picks->height()); // not required anymore because QCopChannel::send | 476 | //move(x(), y() - picks->height()); // not required anymore because QCopChannel::send |
477 | //adjustSize(); | 477 | //adjustSize(); |
478 | QObject::connect( picks, SIGNAL(key(ushort,ushort,ushort,bool,bool) ), | 478 | QObject::connect( picks, SIGNAL(key(ushort,ushort,ushort,bool,bool) ), |
479 | this, SIGNAL(key(ushort,ushort,ushort,bool,bool)) ); | 479 | this, SIGNAL(key(ushort,ushort,ushort,bool,bool)) ); |
480 | } else { | 480 | } else { |
481 | 481 | ||
482 | picks->hide(); | 482 | picks->hide(); |