diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-13 07:07:57 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-13 07:07:57 +0000 |
| commit | 56f272b11d13bbc5d829283ccf2813d3a7e41dbc (patch) | |
| tree | dbd826fc0df0e9b087f5c0d1889e3f9eaca5181f /pokemodr/models/RootModel.cpp | |
| parent | 654b25d1b4e73e840e5fe2ab63d844c2157f3379 (diff) | |
| download | sigen-56f272b11d13bbc5d829283ccf2813d3a7e41dbc.tar.gz sigen-56f272b11d13bbc5d829283ccf2813d3a7e41dbc.tar.xz sigen-56f272b11d13bbc5d829283ccf2813d3a7e41dbc.zip | |
[ADD] Sound UI code
[FIX] Using class-named includes for KDE as well now
[FIX] Signals fixed for UI classes
[FIX] FileDialog now created on heap rather than the stack
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@128 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/RootModel.cpp')
| -rw-r--r-- | pokemodr/models/RootModel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pokemodr/models/RootModel.cpp b/pokemodr/models/RootModel.cpp index 40759f7f..fd2af87f 100644 --- a/pokemodr/models/RootModel.cpp +++ b/pokemodr/models/RootModel.cpp @@ -28,7 +28,9 @@ #include <QFile> #include "../../pokemod/Ability.h" #include "../../pokemod/AbilityEffect.h" +#include "../../pokemod/Sound.h" #include "AbilityModel.h" +#include "SoundModel.h" RootModel::RootModel(const QList<QVariant>& pokemods) : GroupModel(NULL, NULL) @@ -78,7 +80,10 @@ void RootModel::setupData(const QList<QVariant>& pokemods) Ability* ability = pokemod->newAbility(); ability->setName("foo"); ability->newEffect()->setEffect(AbilityEffect::E_PreventDamage); + Sound* sound = pokemod->newSound(); + sound->setName("bar"); m_objects.append(new AbilityModel(this, ability)); + m_objects.append(new SoundModel(this, sound)); m_objects.append(new AbilityGroupModel(this, pokemod)); Pokemod* full = new Pokemod(xml.documentElement()); m_objects.append(new PokemodModel(this, full)); |
