-rw-r--r-- | library/qpeapplication.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index c0f0bfc..8deca21 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h @@ -189,14 +189,13 @@ private: inline void QPEApplication::showDialog( QDialog* d, bool nomax ) { QSize sh = d->sizeHint(); int w = QMAX(sh.width(),d->width()); int h = QMAX(sh.height(),d->height()); if ( !nomax - && ( w > qApp->desktop()->width()*3/4 - || h > qApp->desktop()->height()*3/4 ) ) + && ( qApp->desktop()->width() <= 320 ) ) { d->showMaximized(); } else { d->resize(w,h); d->show(); } @@ -211,14 +210,13 @@ inline int QPEApplication::execDialog( QDialog* d, bool nomax ) inline void QPEApplication::showWidget( QWidget* wg, bool nomax ) { QSize sh = wg->sizeHint(); int w = QMAX(sh.width(),wg->width()); int h = QMAX(sh.height(),wg->height()); if ( !nomax - && ( w > qApp->desktop()->width()*3/4 - || h > qApp->desktop()->height()*3/4 ) ) + && ( qApp->desktop()->width() <= 320 ) ) { wg->showMaximized(); } else { wg->resize(w,h); wg->show(); } |