author | llornkcor <llornkcor> | 2004-04-25 08:54:30 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-04-25 08:54:30 (UTC) |
commit | 5d3c80f70109bee75d55db2a11d7112eb7ebaa99 (patch) (unidiff) | |
tree | 4215d0bce8d8b270cead8afa829e59da173ae63f | |
parent | ea4380df897798cf4bbadaf786868a18b3dee975 (diff) | |
download | opie-5d3c80f70109bee75d55db2a11d7112eb7ebaa99.zip opie-5d3c80f70109bee75d55db2a11d7112eb7ebaa99.tar.gz opie-5d3c80f70109bee75d55db2a11d7112eb7ebaa99.tar.bz2 |
remove commented out ugly hack
-rw-r--r-- | library/qpeapplication.cpp | 25 |
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: | |||
210 | #ifdef Q_WS_QWS | 210 | #ifdef Q_WS_QWS |
211 | if ( !nomaximize ) | 211 | if ( !nomaximize ) |
212 | mw->showMaximized(); | 212 | mw->showMaximized(); |
213 | #endif | 213 | #endif |
214 | } | 214 | } |
215 | if ( max && !nomaximize ) | 215 | if ( max && !nomaximize ) |
216 | mw->showMaximized(); | 216 | mw->showMaximized(); |
217 | else | 217 | else |
218 | mw->show(); | 218 | mw->show(); |
219 | } | 219 | } |
220 | } | 220 | } |
221 | } | 221 | } |
222 | // // ugly hack, remove that later after finding a sane solution | ||
223 | // // Addendum: Only Sharp currently has models with high resolution but (physically) small displays, | ||
224 | // // so this is only useful if QT_QWS_SIMPAD is NOT defined. E.g. SIMpad has 800x600 but has | ||
225 | // // a (physically) large enough display to use the small icons | ||
226 | // #if defined(OPIE_HIGH_RES_SMALL_PHY) | ||
227 | // if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) { | ||
228 | // ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true ); | ||
229 | // } | ||
230 | // #endif | ||
231 | |||
232 | // if ( mw->layout() && mw->inherits("QDialog") ) { | ||
233 | // QPEApplication::showDialog((QDialog*)mw, nomaximize); | ||
234 | // } | ||
235 | // else { | ||
236 | // #ifdef Q_WS_QWS | ||
237 | // if ( !nomaximize ) { | ||
238 | // qDebug("QDialog special case XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); | ||
239 | // mw->showMaximized(); | ||
240 | // //QPEApplication::showWidget( mw, !nomaximize ); | ||
241 | // }else | ||
242 | // #endif | ||
243 | // mw->show(); | ||
244 | // } | ||
245 | //} | ||
246 | |||
247 | 222 | ||
248 | static void qpe_show_dialog( QDialog* d, bool nomax ) | 223 | static void qpe_show_dialog( QDialog* d, bool nomax ) |
249 | { | 224 | { |
250 | QSize sh = d->sizeHint(); | 225 | QSize sh = d->sizeHint(); |
251 | int w = QMAX(sh.width(),d->width()); | 226 | int w = QMAX(sh.width(),d->width()); |
252 | int h = QMAX(sh.height(),d->height()); | 227 | int h = QMAX(sh.height(),d->height()); |
253 | 228 | ||
254 | if ( d->parentWidget() && !d->parentWidget()->topLevelWidget()->isMaximized() ) | 229 | if ( d->parentWidget() && !d->parentWidget()->topLevelWidget()->isMaximized() ) |
255 | nomax = TRUE; | 230 | nomax = TRUE; |
256 | 231 | ||
257 | #ifndef Q_WS_QWS | 232 | #ifndef Q_WS_QWS |
258 | QSize s(qApp->desktop()->width(), qApp->desktop()->height() ); | 233 | QSize s(qApp->desktop()->width(), qApp->desktop()->height() ); |