]> granicus.if.org Git - nethack/commitdiff
Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work
authorwarwick <warwick>
Fri, 11 Jan 2002 03:02:44 +0000 (03:02 +0000)
committerwarwick <warwick>
Fri, 11 Jan 2002 03:02:44 +0000 (03:02 +0000)
on normal Qt (not just Qt/Embedded).

win/Qt/qt_win.cpp

index ac9c3b172f621806df8a8a4fbc55d41e92e556e0..ad9124d23678e37dab39a019101b76a2f570be6a 100644 (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;
+    }
 }