From: PatR Date: Sun, 16 Jan 2022 22:41:17 +0000 (-0800) Subject: Qt extended commands X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0f222fe6648d5ccaa4ac26ab2d29a6dff576073;p=nethack 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. --- diff --git a/win/Qt/qt_xcmd.cpp b/win/Qt/qt_xcmd.cpp index f1c203903..11e8e6fe1 100644 --- a/win/Qt/qt_xcmd.cpp +++ b/win/Qt/qt_xcmd.cpp @@ -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