summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 5ce3011..10c6c40 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -210,49 +210,24 @@ public:
#ifdef Q_WS_QWS
if ( !nomaximize )
mw->showMaximized();
#endif
}
if ( max && !nomaximize )
mw->showMaximized();
else
mw->show();
}
}
}
-// // ugly hack, remove that later after finding a sane solution
-// // Addendum: Only Sharp currently has models with high resolution but (physically) small displays,
-// // so this is only useful if QT_QWS_SIMPAD is NOT defined. E.g. SIMpad has 800x600 but has
-// // a (physically) large enough display to use the small icons
-// #if defined(OPIE_HIGH_RES_SMALL_PHY)
-// if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) {
-// ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true );
-// }
-// #endif
-
-// if ( mw->layout() && mw->inherits("QDialog") ) {
-// QPEApplication::showDialog((QDialog*)mw, nomaximize);
-// }
-// else {
-// #ifdef Q_WS_QWS
-// if ( !nomaximize ) {
-// qDebug("QDialog special case XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
-// mw->showMaximized();
-// // QPEApplication::showWidget( mw, !nomaximize );
-// } else
-// #endif
-// mw->show();
-// }
-// }
-
static void qpe_show_dialog( QDialog* d, bool nomax )
{
QSize sh = d->sizeHint();
int w = QMAX(sh.width(),d->width());
int h = QMAX(sh.height(),d->height());
if ( d->parentWidget() && !d->parentWidget()->topLevelWidget()->isMaximized() )
nomax = TRUE;
#ifndef Q_WS_QWS
QSize s(qApp->desktop()->width(), qApp->desktop()->height() );