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

Method setIcon

outdated/win/Qt3/qt3_win.cpp:2115–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2113 setLabel(t,v,v,tail);
2114}
2115void NetHackQtLabelledIcon::setIcon(const QPixmap& i)
2116{
2117 if (icon) icon->setPixmap(i);
2118 else { icon=new QLabel(this); icon->setPixmap(i); resizeEvent(0); }
2119 icon->resize(i.width(),i.height());
2120}
2121void NetHackQtLabelledIcon::setFont(const QFont& f)
2122{
2123 QWidget::setFont(f);

Callers 2

NetHackQtStatusWindowMethod · 0.45
updateStatsMethod · 0.45

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected