Qt: more '#' support

Add an entry for running an extended command to Qt's 'game' menu.
This commit is contained in:
PatR
2022-01-17 14:38:16 -08:00
parent 0a47a6fd3d
commit f420b9672f
4 changed files with 10 additions and 6 deletions

View File

@@ -580,11 +580,13 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
enum { OnDesktop=1, OnHandhelds=2 };
struct Macro {
QMenu* menu;
const char* name;
int flags;
QMenu *menu;
const char *name;
int flags; // 1 desktop, 2 handheld, 3 either/both
int (*funct)(void);
} item[] = {
{ game, 0, 3},
{ game, "Extended-commands", 3, doextcmd },
{ game, 0, 3},
{ game, "Version", 3, doversion},
{ game, "Compilation", 3, doextversion},