-rw-r--r-- | core/launcher/inputmethods.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/launcher/inputmethods.cpp b/core/launcher/inputmethods.cpp index 765dfe9..09b9a83 100644 --- a/core/launcher/inputmethods.cpp +++ b/core/launcher/inputmethods.cpp @@ -285,13 +285,17 @@ void InputMethods::showKbd( bool on ) if ( on ) { method->interface->resetState(); // HACK... Make the texteditor fit with all input methods // Input methods should also never use more than about 40% of the screen int height = QMIN( method->widget->sizeHint().height(), 134 ); + #ifdef QT_QWS_SIMPAD + method->widget->resize( qApp->desktop()->width() / 2, height ); // make it half the width on the SIMpad + #else method->widget->resize( qApp->desktop()->width(), height ); + #endif method->widget->move( 0, mapToGlobal( QPoint() ).y() - height ); method->widget->show(); } else { method->widget->hide(); } |