| 202 | } |
| 203 | |
| 204 | void NetHackQtLabelledIcon::highlight(const QString& hl) |
| 205 | { |
| 206 | if (label) { // Surely it is?! |
| 207 | if (turn_count >= 0) { |
| 208 | label->setStyleSheet(hl); |
| 209 | turn_count = 4; |
| 210 | // 4 includes this turn, so dissipates after 3 more keypresses. |
| 211 | } else { |
| 212 | unhighlight(); |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | void NetHackQtLabelledIcon::dissipateHighlight() |
| 218 | { |
nothing calls this directly
no outgoing calls
no test coverage detected