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/Store.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/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index 0358e473..e0a54159 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -73,6 +73,7 @@ QDomElement Store::save() const void Store::setName(const QString& name) { m_name = name; + emit(changed()); } void Store::setItem(const int item, const bool state) @@ -85,10 +86,16 @@ void Store::setItem(const int item, const bool state) if (state) { if (!m_item.contains(item)) + { m_item.append(item); + emit(changed()); + } } else + { m_item.removeAll(item); + emit(changed()); + } } QString Store::name() const |
