| 770 | } |
| 771 | |
| 772 | void NetHackQtMenuWindow::Invert() |
| 773 | { |
| 774 | if (how == PICK_NONE) |
| 775 | return; |
| 776 | |
| 777 | if (counting) |
| 778 | ClearCount(); // discard any pending count |
| 779 | for (int row = 0; row < itemcount; ++row) { |
| 780 | itemlist[row].preselected = false; // stale for all rows |
| 781 | if (!itemlist[row].Selectable() |
| 782 | || !menuitem_invert_test(0, itemlist[row].itemflags, |
| 783 | itemlist[row].selected)) |
| 784 | continue; |
| 785 | ToggleSelect(row, false); |
| 786 | } |
| 787 | if (biggestcount > 0L) { // had one or more counts |
| 788 | UpdateCountColumn(-1L); // all counts are now gone |
| 789 | } else { |
| 790 | table->repaint(); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | void NetHackQtMenuWindow::Search() |
| 795 | { |
nothing calls this directly
no test coverage detected