| 142 | } |
| 143 | |
| 144 | void StatusBar::updateNormalMessage(OrganizerCore& core) |
| 145 | { |
| 146 | QString game; |
| 147 | |
| 148 | if (core.managedGame()) { |
| 149 | game = core.managedGame()->displayGameName(); |
| 150 | } else { |
| 151 | game = tr("Unknown game"); |
| 152 | } |
| 153 | |
| 154 | QString instance = "?"; |
| 155 | if (auto i = InstanceManager::singleton().currentInstance()) |
| 156 | instance = i->displayName(); |
| 157 | |
| 158 | QString profile = core.profileName(); |
| 159 | |
| 160 | const auto s = QString("%1 - %2 - %3").arg(game).arg(instance).arg(profile); |
| 161 | |
| 162 | m_normal->setText(s); |
| 163 | } |
| 164 | |
| 165 | void StatusBar::showEvent(QShowEvent*) |
| 166 | { |
no test coverage detected