-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 @@ -183,48 +183,46 @@ private: bool reserved_sh; }; 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(); } } inline int QPEApplication::execDialog( QDialog* d, bool nomax ) { showDialog(d,nomax); return d->exec(); } 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(); } } enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ inline int TransToDeg ( Transformation t ) { |