From 1bb96586d65120a4865606b4955471f6a698c928 Mon Sep 17 00:00:00 2001 From: warwick Date: Fri, 11 Jan 2002 03:02:44 +0000 Subject: [PATCH] Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work on normal Qt (not just Qt/Embedded). --- win/Qt/qt_win.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; + } } -- 2.50.1