MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / updateNormalMessage

Method updateNormalMessage

src/statusbar.cpp:144–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void 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
165void StatusBar::showEvent(QShowEvent*)
166{

Callers 2

MainWindowMethod · 0.80

Calls 6

QStringClass · 0.85
managedGameMethod · 0.45
currentInstanceMethod · 0.45
displayNameMethod · 0.45
profileNameMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected