MCPcopy Create free account
hub / github.com/NetHack/NetHack / setLabel

Method setLabel

outdated/win/Qt3/qt3_win.cpp:2088–2099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2086}
2087
2088void 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}
2100void NetHackQtLabelledIcon::setLabel(const char* t, long v, long cv, const char* tail)
2101{
2102 char buf[BUFSZ];

Callers 1

updateStatsMethod · 0.45

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected