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

Method updateButton

src/createinstancedialogpages.cpp:467–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void GamePage::updateButton(Game* g)
468{
469 if (!g || !g->button) {
470 return;
471 }
472
473 g->button->setText(g->game->displayGameName().replace("&", "&&"));
474 g->button->setIcon(g->game->gameIcon());
475
476 if (g->installed) {
477 g->button->setDescription(g->dir);
478 } else {
479 g->button->setDescription(QObject::tr("No installation found"));
480 }
481}
482
483void GamePage::selectButton(Game* g)
484{

Callers

nothing calls this directly

Calls 3

setIconMethod · 0.80
setDescriptionMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected