| 120 | } |
| 121 | |
| 122 | void 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 | |
| 135 | void NetHackQtLabelledIcon::setFont(const QFont& f) |
| 136 | { |
no test coverage detected