Esempio n. 1
0
void MainWindow::on_actionSpells_triggered()
{
    Spells* ar = new Spells();
    this->setCentralWidget(ar);
    ar->show();
    ar->setMainWindow(this);
}
Esempio n. 2
0
void Languages::on_btnNext_clicked()
{
    if(ui->tableWidget_5->item(0,1)->checkState()==2){
        _main->newChar->setAbyssal(true);
    } else {
       _main->newChar->setAbyssal(false);
    }
    if(ui->tableWidget_5->item(1,1)->checkState()==2){
        _main->newChar->setCommon(true);
    } else {
        _main->newChar->setCommon(false);
    }
    if(ui->tableWidget_5->item(2,1)->checkState()==2){
        _main->newChar->setGiant(true);
    } else {
        _main->newChar->setGiant(false);
    }
    if(ui->tableWidget_5->item(3,1)->checkState()==2){
        _main->newChar->setOrc(true);
    } else {
        _main->newChar->setOrc(false);
    }

    Spells* s = new Spells();
    _main->setCentralWidget(s);
    s->show();
    s->setMainWindow(_main);
}