| 198 | } |
| 199 | |
| 200 | HudButton *createHudButton(const QString &text, const QString &iconName, bool showText) |
| 201 | { |
| 202 | auto button = new HudButton; |
| 203 | if (showText) { |
| 204 | button->setText(text); |
| 205 | } else { |
| 206 | button->setToolTip(text); |
| 207 | } |
| 208 | button->setIcon(QIcon::fromTheme(iconName)); |
| 209 | return button; |
| 210 | } |
| 211 | |
| 212 | void setupHud() |
| 213 | { |