the line edit widget for the name field has received input
| 558 | |
| 559 | // the line edit widget for the name field has received input |
| 560 | void NetHackQtPlayerSelector::selectName(const QString& n) |
| 561 | { |
| 562 | const char *name_str = n.toLatin1().constData(); |
| 563 | // skip any leading spaces |
| 564 | // (it would be better to set up a validator that rejects leading spaces) |
| 565 | while (*name_str == ' ') |
| 566 | ++name_str; |
| 567 | str_copy(svp.plname, name_str, PL_NSIZ); |
| 568 | // possibly enable or disable the [Play] button |
| 569 | plnamePlayVsQuit(); |
| 570 | } |
| 571 | |
| 572 | void NetHackQtPlayerSelector::selectRole(int crow, int ccol, |
| 573 | int prow, int pcol) |
nothing calls this directly
no test coverage detected