| 2071 | initHighlight(); |
| 2072 | } |
| 2073 | void NetHackQtLabelledIcon::initHighlight() |
| 2074 | { |
| 2075 | const QPalette& pal=palette(); |
| 2076 | const QColorGroup& pa=pal.normal(); |
| 2077 | //QColorGroup good(white,darkGreen,pa.light(),pa.dark(),pa.mid(),white,pa.base()); |
| 2078 | QColorGroup good(black,green,pa.light(),pa.dark(),pa.mid(),black,pa.base()); |
| 2079 | QColorGroup bad(white,red,pa.light(),pa.dark(),pa.mid(),white,pa.base()); |
| 2080 | hl_good=pal.copy(); |
| 2081 | hl_good.setNormal(good); |
| 2082 | hl_good.setActive(good); |
| 2083 | hl_bad=pal.copy(); |
| 2084 | hl_bad.setNormal(bad); |
| 2085 | hl_bad.setActive(bad); |
| 2086 | } |
| 2087 | |
| 2088 | void NetHackQtLabelledIcon::setLabel(const char* t, bool lower) |
| 2089 | { |
nothing calls this directly
no outgoing calls
no test coverage detected