| 2086 | } |
| 2087 | |
| 2088 | void NetHackQtLabelledIcon::setLabel(const char* t, bool lower) |
| 2089 | { |
| 2090 | if (!label) { |
| 2091 | label=new QLabel(this); |
| 2092 | label->setFont(font()); |
| 2093 | resizeEvent(0); |
| 2094 | } |
| 2095 | if (0!=strcmp(label->text(),t)) { |
| 2096 | label->setText(t); |
| 2097 | highlight(lower==low_is_good ? hl_good : hl_bad); |
| 2098 | } |
| 2099 | } |
| 2100 | void NetHackQtLabelledIcon::setLabel(const char* t, long v, long cv, const char* tail) |
| 2101 | { |
| 2102 | char buf[BUFSZ]; |