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

Method updateWindowTitle

src/mainwindow.cpp:639–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void MainWindow::updateWindowTitle(const APIUserAccount& user)
640{
641 //"\xe2\x80\x93" is an "em dash", a longer "-"
642 QString title = QString("%1 \xe2\x80\x93 Mod Organizer v%2")
643 .arg(m_OrganizerCore.managedGame()->displayGameName(),
644 m_OrganizerCore.getVersion().displayString(3));
645
646 if (!user.name().isEmpty()) {
647 const QString premium = (user.type() == APIUserAccountTypes::Premium ? "*" : "");
648 title.append(QString(" (%1%2)").arg(user.name(), premium));
649 }
650
651 this->setWindowTitle(title);
652}
653
654void MainWindow::resizeLists(bool pluginListCustom)
655{

Callers

nothing calls this directly

Calls 6

QStringClass · 0.85
managedGameMethod · 0.45
getVersionMethod · 0.45
isEmptyMethod · 0.45
nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected