Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work

on normal Qt (not just Qt/Embedded).
This commit is contained in:
warwick
2002-01-11 03:02:44 +00:00
parent 157840766d
commit 1bb96586d6

View File

@@ -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;
}
}