From a0f222fe6648d5ccaa4ac26ab2d29a6dff576073 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 16 Jan 2022 14:41:17 -0800 Subject: [PATCH] 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. --- win/Qt/qt_xcmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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