From: warwick Date: Fri, 11 Jan 2002 03:02:44 +0000 (+0000) Subject: Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work X-Git-Tag: MOVE2GIT~3510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bb96586d65120a4865606b4955471f6a698c928;p=nethack Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work on normal Qt (not just Qt/Embedded). --- diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index ac9c3b172..ad9124d23 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -1241,17 +1241,21 @@ bool NetHackQtPlayerSelector::Choose() { if (fully_specified_role) return TRUE; +#if defined(QWS) // probably safe with Qt 3, too (where show!=exec in QDialog). if ( qt_compact_mode ) { showMaximized(); - } else { + } else +#endif + { adjustSize(); centerOnMain(this); } if ( exec() ) { return TRUE; - } else + } else { return FALSE; + } }