MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / showModInfo

Method showModInfo

tools/launcher/launcherwindow.cpp:494–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void LauncherWindow::showModInfo(const ModInfo &info)
495{
496 ui->modName->setText(QString::fromStdString(info.getName()));
497 ui->modAuthor->setText(QString::fromStdString(info.getAuthor()));
498 ui->modVersion->setText(QString::fromStdString(info.getVersion()));
499 ui->modDescription->setText(QString::fromStdString(info.getDescription()));
500
501 auto linkText = format("<a href=\"%s\">%s</a>", info.getLink(), info.getLink());
502
503 ui->modLink->setText(QString::fromStdString(linkText));
504}
505
506void LauncherWindow::rebuildModList()
507{

Callers 2

enabledModSelectedMethod · 0.95
disabledModSelectedMethod · 0.95

Calls 3

formatFunction · 0.85
setTextMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected