MCPcopy Create free account
hub / github.com/NetHack/NetHack / sizeHint

Method sizeHint

win/Qt/qt_menu.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57// end temporary
58
59QSize NetHackQtTextListBox::sizeHint() const
60{
61 QScrollBar *hscroll = horizontalScrollBar();
62 int hsize = hscroll ? hscroll->height() : 0;
63 return QSize(TotalWidth()+hsize, TotalHeight()+hsize);
64}
65
66int NetHackQtMenuListBox::TotalWidth() const
67{

Callers

nothing calls this directly

Calls 2

heightMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected