| 714 | } |
| 715 | |
| 716 | bool 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_ |
no test coverage detected