Esempio n. 1
0
void TrainerMenu::updateData()
{
    ui->name->setText(team().name());
    setColor();
    ui->infos->setPlainText(team().info().info);
    ui->winningMessage->setText(team().info().winning);
    ui->losingMessage->setText(team().info().losing);
    ui->tieMessage->setText(team().info().tie);
    ui->avatarNumber->setValue(team().info().avatar);
    setAvatarPixmap();
}
void TrainerMenu::setAvatarPixmap(int number)
{
    ui->avatarNumber->setValue(number);
    setAvatarPixmap();
}