MCPcopy Create free account
hub / github.com/NetHack/NetHack / Choose

Method Choose

win/Qt/qt_plsel.cpp:716–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716bool NetHackQtPlayerSelector::Choose()
717{
718 if (fully_specified_role)
719 return true;
720
721#if defined(QWS) // probably safe with Qt 3, too (where show!=exec in QDialog).
722 if ( qt_compact_mode ) {
723 showMaximized();
724 } else
725#endif
726 {
727 adjustSize();
728 centerOnMain(this);
729 }
730
731 if ( exec() ) {
732 flags.initrace = race->currentRow();
733 flags.initrole = role->currentRow();
734 flags.initgend = chosen_gend;
735 flags.initalign = chosen_align;
736 return true;
737 } else {
738 return false;
739 }
740}
741
742} // namespace nethack_qt_

Callers 1

qt_asknameMethod · 0.45

Calls 1

centerOnMainFunction · 0.70

Tested by

no test coverage detected