diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 19:55:43 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 19:55:43 +0000 |
| commit | fdd0eec1d145fb8ac97b4cc9aaed5218214416ec (patch) | |
| tree | 2389a0d53fe3eaa644ccb220345995feec748823 /pokemod/Nature.cpp | |
| parent | 77124f3f105ea3837022d20a49028309a211c4b0 (diff) | |
| download | sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.gz sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.xz sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.zip | |
[FIX] Refactored out connections made within widgets
[FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed
[FIX] Pokemod classes now emit signals
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Nature.cpp')
| -rw-r--r-- | pokemod/Nature.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pokemod/Nature.cpp b/pokemod/Nature.cpp index 86a53deb..db571d00 100644 --- a/pokemod/Nature.cpp +++ b/pokemod/Nature.cpp @@ -75,6 +75,7 @@ QDomElement Nature::save() const void Nature::setName(const QString& name) { m_name = name; + emit(changed()); } void Nature::setStat(const int stat, const Fraction& multiplier) @@ -85,6 +86,7 @@ void Nature::setStat(const int stat, const Fraction& multiplier) return; } m_stat[stat] = multiplier; + emit(changed()); } void Nature::setWeight(const int weight) @@ -95,6 +97,7 @@ void Nature::setWeight(const int weight) return; } m_weight = weight; + emit(changed()); } QString Nature::name() const |
