summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-07-08 10:12:26 (UTC)
committer mickeyl <mickeyl>2003-07-08 10:12:26 (UTC)
commit86cfa9479c119d581808f53f7b46e9cfeb127ccd (patch) (unidiff)
tree615df0595ee711c8d479dd9b3be5d19d9deee20e
parent7fed22ccbc1272fe0c5fb1c7f47bc330f118b854 (diff)
downloadopie-86cfa9479c119d581808f53f7b46e9cfeb127ccd.zip
opie-86cfa9479c119d581808f53f7b46e9cfeb127ccd.tar.gz
opie-86cfa9479c119d581808f53f7b46e9cfeb127ccd.tar.bz2
make inputmethods half the desktop width on the SIMpad
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/inputmethods.cpp4
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 )
285 285
286 if ( on ) { 286 if ( on ) {
287 method->interface->resetState(); 287 method->interface->resetState();
288 // HACK... Make the texteditor fit with all input methods 288 // HACK... Make the texteditor fit with all input methods
289 // Input methods should also never use more than about 40% of the screen 289 // Input methods should also never use more than about 40% of the screen
290 int height = QMIN( method->widget->sizeHint().height(), 134 ); 290 int height = QMIN( method->widget->sizeHint().height(), 134 );
291 #ifdef QT_QWS_SIMPAD
292 method->widget->resize( qApp->desktop()->width() / 2, height ); // make it half the width on the SIMpad
293 #else
291 method->widget->resize( qApp->desktop()->width(), height ); 294 method->widget->resize( qApp->desktop()->width(), height );
295 #endif
292 method->widget->move( 0, mapToGlobal( QPoint() ).y() - height ); 296 method->widget->move( 0, mapToGlobal( QPoint() ).y() - height );
293 method->widget->show(); 297 method->widget->show();
294 } else { 298 } else {
295 method->widget->hide(); 299 method->widget->hide();
296 } 300 }
297 301