diff options
Diffstat (limited to 'pokemodr/NatureUI.cpp')
| -rw-r--r-- | pokemodr/NatureUI.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pokemodr/NatureUI.cpp b/pokemodr/NatureUI.cpp index bd008f34..b194d108 100644 --- a/pokemodr/NatureUI.cpp +++ b/pokemodr/NatureUI.cpp @@ -39,7 +39,7 @@ NatureUI::NatureUI(Nature* n, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(nature, nature_mod); - connect(this, SIGNAL(setChanged(bool)), boxButtons, SLOT(setDisabled(bool))); + connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool))); const bool isSplit = nature->getPokemod()->getRules()->getSpecialSplit(); varStat->addItems((isSplit ? StatRBYStr : StatGSCStr).mid(0, isSplit ? ST_End_RBY : ST_End_GSC)); setGui(); @@ -62,25 +62,25 @@ void NatureUI::setGui() void NatureUI::on_buttonApply_clicked() { *nature = *nature_mod; - emit(setChanged(false)); + emit(changed(false)); } void NatureUI::on_buttonDiscard_clicked() { *nature_mod = *nature; - emit(setChanged(false)); + emit(changed(false)); setGui(); } void NatureUI::on_varName_textChanged(const QString& n) { nature_mod->setName(n); - emit(setChanged(true)); + emit(changed(true)); } void NatureUI::on_varStatMultiplier_currentIndexChanged() { - emit(setChanged(true)); + emit(changed(true)); setGui(); } @@ -89,7 +89,7 @@ void NatureUI::on_varStatMultiplierNum_valueChanged(const int s) try { nature_mod->setStatNum(varStat->currentIndex(), s); - emit(setChanged(true)); + emit(changed(true)); } catch (Exception& e) { @@ -103,7 +103,7 @@ void NatureUI::on_varStatMultiplierDenom_valueChanged(const int s) try { nature_mod->setStatDenom(varStat->currentIndex(), s); - emit(setChanged(true)); + emit(changed(true)); } catch (Exception& e) { @@ -117,7 +117,7 @@ void NatureUI::on_varWeight_valueChanged(const int w) try { nature_mod->setWeight(w); - emit(setChanged(true)); + emit(changed(true)); } catch (BoundsException& e) { |
