| 3002 | } |
| 3003 | |
| 3004 | void NetHackQtMenuWindow::Search() |
| 3005 | { |
| 3006 | NetHackQtStringRequestor requestor(keysource,"Search for:"); |
| 3007 | char line[256]; |
| 3008 | if (requestor.Get(line)) { |
| 3009 | for (int i=0; i<itemcount; i++) { |
| 3010 | if (strstr(item[i].str,line)) |
| 3011 | ToggleSelect(i); |
| 3012 | } |
| 3013 | } |
| 3014 | } |
| 3015 | |
| 3016 | void NetHackQtMenuWindow::ToggleSelect(int i) |
| 3017 | { |
nothing calls this directly
no test coverage detected