summaryrefslogtreecommitdiff
path: root/library/qpeapplication.h
Side-by-side diff
Diffstat (limited to 'library/qpeapplication.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.h6
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
@@ -192,8 +192,7 @@ inline void QPEApplication::showDialog( QDialog* d, bool nomax )
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 {
@@ -214,8 +213,7 @@ inline void QPEApplication::showWidget( QWidget* wg, bool nomax )
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 {