summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/MapTrainerModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-15 04:58:10 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-15 04:58:10 +0000
commitb46fba7a98595e8be65caaaa8f36b2e28adce137 (patch)
tree074518f6554a7764707fc1035a4bf158ca8ae1b3 /pokemodr/models/MapTrainerModel.cpp
parent25984412ffc414de66b7fc990bb53cbfcf2a6993 (diff)
downloadsigen-b46fba7a98595e8be65caaaa8f36b2e28adce137.tar.gz
sigen-b46fba7a98595e8be65caaaa8f36b2e28adce137.tar.xz
sigen-b46fba7a98595e8be65caaaa8f36b2e28adce137.zip
[ADD] MapEffect widget logic
[FIX] Fixed up some other minor problems git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@133 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/MapTrainerModel.cpp')
-rw-r--r--pokemodr/models/MapTrainerModel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pokemodr/models/MapTrainerModel.cpp b/pokemodr/models/MapTrainerModel.cpp
index bb9630dc..a6075423 100644
--- a/pokemodr/models/MapTrainerModel.cpp
+++ b/pokemodr/models/MapTrainerModel.cpp
@@ -22,7 +22,7 @@
#include "MapTrainerTeamMemberModel.h"
// PokeModr includes
-// #include "../MapTrainerUI.h"
+#include "../MapTrainerUI.h"
// Pokemod includes
#include "../../pokemod/Map.h"
@@ -54,9 +54,8 @@ QVariant MapTrainerModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- // TODO: MapTrainerUI
-// QWidget* widget = new MapTrainerUI(static_cast<MapTrainer*>(m_object), NULL);
-// return QVariant::fromValue(widget);
+ QWidget* widget = new MapTrainerUI(static_cast<MapTrainer*>(m_object), NULL);
+ return QVariant::fromValue(widget);
}
return QVariant();
}