Qt extended commands

The substantial increase in extended commands has forced the grid of
commands to be expanded, otherwise the bottom of each column ends up
off the bottom of the screen.

The widget supporting the '#' command doesn't include scrollbars.
It really needs to be able to include those when needed but I don't
know how to do that.
This commit is contained in:
PatR
2022-01-16 14:41:17 -08:00
parent 89cfea0085
commit a0f222fe66

View File

@@ -273,8 +273,8 @@ NetHackQtExtCmdRequestor::NetHackQtExtCmdRequestor(QWidget *parent) :
as an extended command, that resulted in so many rows that some of
the grid was chopped off at the bottom of the screen and the buttons
in that portion were out of reach */
unsigned ncols = (set == all_cmds) ? 8
: (set == normal_cmds) ? 7
unsigned ncols = (set == all_cmds) ? 9
: (set == normal_cmds) ? 8
: (set == autocomplete_cmds) ? (WizardMode ? 6 : 5)
: (set == wizard_cmds) ? (byRow ? 6 : 5)
: 1; // can't happen