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

Method highlight

outdated/win/Qt3/qt3_win.cpp:2152–2164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150 }
2151}
2152void NetHackQtLabelledIcon::highlight(const QPalette& hl)
2153{
2154 if (label) { // Surely it is?!
2155 if (turn_count>=0) {
2156 label->setPalette(hl);
2157 turn_count=4;
2158 // `4' includes this turn, so dissipates after
2159 // 3 more keypresses.
2160 } else {
2161 label->setPalette(palette());
2162 }
2163 }
2164}
2165void NetHackQtLabelledIcon::unhighlight()
2166{
2167 if (label) { // Surely it is?!

Callers

nothing calls this directly

Calls 1

setPaletteMethod · 0.80

Tested by

no test coverage detected