| 465 | } |
| 466 | |
| 467 | void 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 | |
| 483 | void GamePage::selectButton(Game* g) |
| 484 | { |
nothing calls this directly
no test coverage detected