void MainWindow::on_actionFeats_triggered() { Feats* ar = new Feats(); this->setCentralWidget(ar); ar->show(); ar->setMainWindow(this); }
void Languages::on_btnBack_clicked() { if(ui->tableWidget_5->item(0,1)->checkState()==2){ _main->newChar->setAbyssal(true); } if(ui->tableWidget_5->item(1,1)->checkState()==2){ _main->newChar->setCommon(true); } if(ui->tableWidget_5->item(2,1)->checkState()==2){ _main->newChar->setGiant(true); } if(ui->tableWidget_5->item(3,1)->checkState()==2){ _main->newChar->setOrc(true); } Feats* a = new Feats(); _main->setCentralWidget(a); a->show(); a->setMainWindow(_main); }