used to highlight status conditions going from Off (blank) to On as "Worse"
| 140 | |
| 141 | // used to highlight status conditions going from Off (blank) to On as "Worse" |
| 142 | void 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 | |
| 154 | QSize NetHackQtLabelledIcon::sizeHint() const |
| 155 | { |
no outgoing calls
no test coverage detected