diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-23 03:40:24 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-23 03:40:24 +0000 |
| commit | d7bc310363c98994457e7882e7010e276169f00a (patch) | |
| tree | b59a7e27c9c5a9fc15c959a289b9ab105127a4aa /pokemodr/NatureUI.cpp | |
| parent | 426721374e515ed14fc3b8d2afabfbb34e223e60 (diff) | |
| download | sigen-d7bc310363c98994457e7882e7010e276169f00a.tar.gz sigen-d7bc310363c98994457e7882e7010e276169f00a.tar.xz sigen-d7bc310363c98994457e7882e7010e276169f00a.zip | |
[FIX] Frac bug with type of Over1
[FIX] PokemodUI vtable errors
[FIX] Manual .pro file clean up
[FIX] Was attempting to emit a slot...
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@72 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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) { |
