set up the style sheet strings used to specify color for status field labels [done "once", but once for each LabelledIcon that's constructed, so about 30 copies overall with 3.6's status conditions]
| 67 | // labels [done "once", but once for each LabelledIcon that's constructed, |
| 68 | // so about 30 copies overall with 3.6's status conditions] |
| 69 | void NetHackQtLabelledIcon::initHighlight() |
| 70 | { |
| 71 | // note: string "green" is much darker than enum Qt::green |
| 72 | // QColor("green") => #00ff00 |
| 73 | // QColor(Qt::green) => #008000 |
| 74 | // QColor("green").lighter(150) => #00c000 /* hitpoint bar's green */ |
| 75 | hl_better = "QLabel { background-color : #00c000 ; color : white }"; |
| 76 | hl_worse = "QLabel { background-color : red ; color : white }"; |
| 77 | hl_changd = "QLabel { background-color : blue ; color : white }"; |
| 78 | } |
| 79 | |
| 80 | void NetHackQtLabelledIcon::setLabel(const QString &t, bool lower) |
| 81 | { |
nothing calls this directly
no outgoing calls
no test coverage detected