From 58f490cf6fd94ec27eec01c0ffc9d0411be594e8 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 21 Feb 2004 23:54:24 +0000 Subject: Default to showMaximized on 240x320 and 320x240 displays --- (limited to 'library/qpeapplication.h') 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 { -- cgit v0.9.0.2