| 2150 | } |
| 2151 | } |
| 2152 | void 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 | } |
| 2165 | void NetHackQtLabelledIcon::unhighlight() |
| 2166 | { |
| 2167 | if (label) { // Surely it is?! |
nothing calls this directly
no test coverage detected