| 92 | } |
| 93 | |
| 94 | void setGlyph(int g, int tileidx) |
| 95 | { |
| 96 | NetHackQtGlyphs& glyphs = qt_settings->glyphs(); |
| 97 | int gw = glyphs.width(); |
| 98 | int gh = glyphs.height(); |
| 99 | QPixmap pm(gw,gh); |
| 100 | QPainter p(&pm); |
| 101 | glyphs.drawGlyph(p, g, tileidx, 0, 0, false); |
| 102 | p.end(); |
| 103 | setIcon(QIcon(pm)); |
| 104 | //RLC setHeight(std::max(pm.height()+1,height())); |
| 105 | } |
| 106 | |
| 107 | #if 0 //RLC |
| 108 | void paintCell( QPainter *p, const QColorGroup &cg, |