-rw-r--r-- | library/qpeapplication.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 9ea7e9d..8c85ad0 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h @@ -200,12 +200,16 @@ inline int QPEApplication::execDialog( QDialog* d, bool nomax ) #ifdef Q_WS_QWS extern Q_EXPORT QRect qt_maxWindowRect; #endif inline void QPEApplication::showWidget( QWidget* wg, bool nomax ) { + if ( wg->isVisible() ) + wg->show(); + else + { if ( !nomax && ( qApp->desktop()->width() <= 320 ) ) { wg->showMaximized(); } else { #ifdef Q_WS_QWS @@ -222,12 +226,13 @@ inline void QPEApplication::showWidget( QWidget* wg, bool nomax ) h = QMIN( h, ( desk.height() - ( wg->frameGeometry().height() - wg->geometry().height() ) - 25 ) ); wg->resize( w, h ); wg->show(); } } +} enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws.cpp */ inline int TransToDeg ( Transformation t ) { int d = static_cast<int>( t ); |