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

Method ToggleSelect

outdated/win/Qt3/qt3_win.cpp:3016–3027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3014}
3015
3016void NetHackQtMenuWindow::ToggleSelect(int i)
3017{
3018 if (item[i].Selectable()) {
3019 item[i].selected = !item[i].selected;
3020 if ( !item[i].selected )
3021 item[i].count=-1;
3022 updateCell(i,3);
3023 if (how==PICK_ONE) {
3024 dialog->Accept();
3025 }
3026 }
3027}
3028
3029
3030void NetHackQtMenuWindow::paintCell(QPainter* painter, int row, int col)

Callers

nothing calls this directly

Calls 2

AcceptMethod · 0.80
SelectableMethod · 0.45

Tested by

no test coverage detected