MCPcopy Index your code
hub / github.com/NetHack/NetHack / show

Method show

win/Qt/qt_icon.cpp:142–152  ·  view source on GitHub ↗

used to highlight status conditions going from Off (blank) to On as "Worse"

Source from the content-addressed store, hash-verified

140
141// used to highlight status conditions going from Off (blank) to On as "Worse"
142void NetHackQtLabelledIcon::show()
143{
144 // Hunger and Encumbrance are worse when going from not shown
145 // to anything and they're set to SmallerIsBetter, so both
146 // BiggerIsBetter and SmallerIsBetter warrant hl_worse here.
147 // Fly, Lev, and Ride are set NeitherIsBetter so that when
148 // they appear they won't be classified as worse.
149 if (isHidden() && comp_mode != NoCompare)
150 highlight((comp_mode != NeitherIsBetter) ? hl_worse : hl_changd);
151 QWidget::show();
152}
153
154QSize NetHackQtLabelledIcon::sizeHint() const
155{

Callers 6

HitpointBarMethod · 0.45
updateStatsMethod · 0.45
doQtSettingsMethod · 0.45
resizePaperDollMethod · 0.45
DisplayMethod · 0.45
qt_SplashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected