author | llornkcor <llornkcor> | 2005-08-09 07:50:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-09 07:50:02 (UTC) |
commit | 65fefea850384673d282e19ebecd7840cb697354 (patch) (side-by-side diff) | |
tree | 9c4bd98abe5d5f61a1c5d002f0189eaadf93903e | |
parent | 3ba74fc183b06760b60f1ad45ca4bfa0e47b3ecc (diff) | |
download | opie-65fefea850384673d282e19ebecd7840cb697354.zip opie-65fefea850384673d282e19ebecd7840cb697354.tar.gz opie-65fefea850384673d282e19ebecd7840cb697354.tar.bz2 |
default should be maximized
-rw-r--r-- | library/qpeapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 19e99f2..286c6ef 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -196,65 +196,65 @@ public: delete r; } } static void show_mx(QWidget* mw, bool nomaximize, QString &strName) { if ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) { ( ( QMainWindow* ) mw )->setUsesBigPixmaps( useBigPixmaps ); } QPoint p; QSize s; bool max; if ( mw->isVisible() ) { if ( read_widget_rect(strName, max, p, s) && validate_widget_size(mw, p, s) ) { mw->resize(s); mw->move(p); } mw->raise(); } else { if ( mw->layout() && mw->inherits("QDialog") ) { if ( read_widget_rect(strName, max, p, s) && validate_widget_size(mw, p, s) ) { mw->resize(s); mw->move(p); if ( max && !nomaximize ) { mw->showMaximized(); } else { mw->show(); } } else { - QPEApplication::showDialog((QDialog*)mw,nomaximize); + QPEApplication::showDialog((QDialog*)mw, !nomaximize); } } else { if ( read_widget_rect(strName, max, p, s) && validate_widget_size(mw, p, s) ) { mw->resize(s); mw->move(p); } else { //no stored rectangle, make an estimation int x = (qApp->desktop()->width()-mw->frameGeometry().width())/2; int y = (qApp->desktop()->height()-mw->frameGeometry().height())/2; mw->move( QMAX(x,0), QMAX(y,0) ); #ifdef Q_WS_QWS if ( !nomaximize ) mw->showMaximized(); #endif } if ( max && !nomaximize ) mw->showMaximized(); else mw->show(); } } } static bool read_widget_rect(const QString &app, bool &maximized, QPoint &p, QSize &s) { #ifndef OPIE_NO_WINDOWED maximized = TRUE; // 350 is the trigger in qwsdefaultdecoration for providing a resize button if ( qApp->desktop()->width() <= 350 ) return FALSE; Config cfg( "qpe" ); cfg.setGroup("ApplicationPositions"); |