Qt menus font
This greatly improves the '?' choice when using the '#' prefix to select an extended command. It isn't perfect, because the <text><spaces><more text> layout (using spaces to pad the first column so that the second one lines up) produces at least one line where <more text> is so long that it wraps, and instead of | <text><spaces><start of more text> | <blank><spaces><rest of more text> that selectable menu entries have, the continuation is | <text><spaces><start of more text> |<rest of more text> (made slightly worse by the fact that <text> is indented a little and <rest...> isn't. This affects the aesthetics of all NHW_MENU windows, not just the one that desparately needed help. Maybe the core should send some hint on a menu or text window by menu or text window basis about whether or not fixed-width font is preferable to variable one.
This commit is contained in:
@@ -214,7 +214,7 @@ void NetHackQtMenuWindow::EndMenu(const QString& p)
|
||||
|
||||
int NetHackQtMenuWindow::SelectMenu(int h, MENU_ITEM_P **menu_list)
|
||||
{
|
||||
QFont tablefont(qt_settings->normalFont());
|
||||
QFont tablefont(qt_settings->normalFixedFont());
|
||||
table->setFont(tablefont);
|
||||
|
||||
table->setRowCount(itemcount);
|
||||
|
||||
Reference in New Issue
Block a user