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

Method setIcon

win/Qt/qt_icon.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void NetHackQtLabelledIcon::setIcon(
123 const QPixmap& i,
124 const QString& tooltip)
125{
126 if (!icon)
127 icon = new QLabel(this);
128 icon->setPixmap(i);
129 if (!tooltip.isNull() && !tooltip.isEmpty())
130 icon->setToolTip(" " + tooltip + " ");
131 ForceResize();
132 icon->resize(i.width(), i.height());
133}
134
135void NetHackQtLabelledIcon::setFont(const QFont& f)
136{

Callers 5

populate_rolesMethod · 0.45
populate_racesMethod · 0.45
NetHackQtStatusWindowMethod · 0.45
updateStatsMethod · 0.45
NetHackQtMainWindowMethod · 0.45

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected