summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/RootModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-16 16:55:28 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-16 16:55:28 +0000
commit9c1388c7964bd3b4ae147e39c146c96dc20947e9 (patch)
tree09628e1b12604d3194b7056c31df0573af4239bd /pokemodr/models/RootModel.cpp
parenta2a81fa0eee00670a1e18918458f6ac12860d59c (diff)
downloadsigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.tar.gz
sigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.tar.xz
sigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.zip
[FIX] TypeModel done for data() in models
[FIX] Another Qt bug found :( [FIX] Better connections for the editor widget git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@141 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/RootModel.cpp')
-rw-r--r--pokemodr/models/RootModel.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/pokemodr/models/RootModel.cpp b/pokemodr/models/RootModel.cpp
index fd2af87f..4817ea04 100644
--- a/pokemodr/models/RootModel.cpp
+++ b/pokemodr/models/RootModel.cpp
@@ -26,11 +26,6 @@
// Test code includes
#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)
@@ -76,15 +71,6 @@ void RootModel::setupData(const QList<QVariant>& pokemods)
QDomDocument xml;
xml.setContent(&fin);
fin.close();
- Pokemod* pokemod = new Pokemod();
- 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));
// TODO: make sub models from data