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

Method NhPSListViewRole

win/Qt/qt_plsel.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125class NhPSListViewRole : public NhPSListViewItem {
126public:
127 NhPSListViewRole( QTableWidget* parent, int id ) :
128 NhPSListViewItem(parent,
129#ifdef QT_CHOOSE_RACE_FIRST // Lowerize - looks better
130 QString(roles[id].name.m).toLower()
131#else
132 roles[id].name.m
133#endif
134 )
135 {
136 glyph_info gi;
137 int glyph = monnum_to_glyph(roles[id].mnum, MALE);
138 map_glyphinfo(0, 0, glyph, 0, &gi);
139 setGlyph(glyph, gi.gm.tileidx);
140 }
141};
142
143class NhPSListViewRace : public NhPSListViewItem {

Callers

nothing calls this directly

Calls 2

map_glyphinfoFunction · 0.85
setGlyphFunction · 0.85

Tested by

no test coverage detected