Qt's window menus
Qt on OSX is inserting "Search [_____]" as the first entry in the Help dropdown menu (the one in the toolbar at the top of the desttop). While trying--and failing--to figure out how to get rid of that, I cleaned up a little bit of the old menu hackery (that tries to workaround the fact that Qt on OSX insists that some menu actions--based solely on their names--should go into the appication menu rather than whichever menu the program is trying to insert them into). The only observeable difference is that 'About NetHack-Qt' will be at the top (actually second because of that Search one) of the Help dropdown, where it is on non-OSX builds, rather than last. This tries to make the program name consistent too, changing several instances of "Qt NetHack" to be "NetHack-Qt". The latter is the name being set up as ApplicationName in qt_bind.cpp that gets used when Qt stashes the Qt-specific settings wherever it stashes them. It also makes another tweak in formatting of 'About NetHack-Qt', inserting one explicit line break to avoid some poor looking line wrapping. I still haven't figured out how to control that popup's size.
This commit is contained in:
@@ -26,6 +26,12 @@ around by giving focus to some other application (which will put up
|
||||
its own menu bar) and then back to nethack (thereby reloading nethack's
|
||||
menu bar).
|
||||
|
||||
On OSX, a "Search [______]" action is inserted as the first entry of
|
||||
the dropdown Help menu on the toolbar. NetHack has no control over
|
||||
what it does or where it looks, so it should be eliminated somehow.
|
||||
(It is not releated to nethack's search command, nor the interception
|
||||
of an attempt to insert "Search" into the dropdown Action menu.)
|
||||
|
||||
Sometimes scrolling a menu leaves the displayed text not matching what
|
||||
nethack thinks is displayed, so making a selection by mouse click may
|
||||
occasionally pick the wrong item. There's usually a visual clue when
|
||||
|
||||
Reference in New Issue
Block a user