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

Method NetHackQtRIP

win/Qt/qt_rip.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44NetHackQtRIP::NetHackQtRIP(QWidget* parent) :
45 QWidget(parent)
46{
47 if (!pixmap) {
48 pixmap=new QPixmap;
49 tryload(*pixmap, PIXMAPDIR "/rip.xpm");
50 }
51 riplines=0;
52 resize(pixmap->width(),pixmap->height());
53 setFont(QFont("times",12)); // XXX may need to be configurable
54}
55
56void NetHackQtRIP::setLines(char** l, int n)
57{

Callers

nothing calls this directly

Calls 3

tryloadFunction · 0.70
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected