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

Method doMenuItem

win/Qt/qt_main.cpp:1026–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026void NetHackQtMainWindow::doMenuItem(QAction *action)
1027{
1028 if (!ok_for_command())
1029 return;
1030 /* this converts meta characters to '?'; menu processing has been
1031 changed to send multi-character "#abc" instead (already needed
1032 for commands that didn't have either a regular keystroke or a
1033 meta shortcut); it must send just enough to disambiguate from
1034 other extended command names, otherwise the remainder would be
1035 left in the queue for subsequent handling as additional commands */
1036 doKeys(action->data().toString());
1037}
1038
1039void NetHackQtMainWindow::doQtSettings(bool)
1040{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected