summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/DialogModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-20 06:15:01 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-20 06:15:01 +0000
commit8ac53af4a15a59b8f6adf7a2468a1bd90a7cc549 (patch)
tree45a457cca639752f54d1f0ba8a207018814e08a9 /pokemodr/models/DialogModel.cpp
parent74e975209e6bcc05ed9f040a19c64960ae519e2c (diff)
downloadsigen-8ac53af4a15a59b8f6adf7a2468a1bd90a7cc549.tar.gz
sigen-8ac53af4a15a59b8f6adf7a2468a1bd90a7cc549.tar.xz
sigen-8ac53af4a15a59b8f6adf7a2468a1bd90a7cc549.zip
[ADD] Added Dialog widget and preliminary code for the commands
[FIX] Factored out some more code from the ctors of the widgets to setObjects git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@156 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/DialogModel.cpp')
-rw-r--r--pokemodr/models/DialogModel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pokemodr/models/DialogModel.cpp b/pokemodr/models/DialogModel.cpp
index cf4d7a60..f0e2b330 100644
--- a/pokemodr/models/DialogModel.cpp
+++ b/pokemodr/models/DialogModel.cpp
@@ -19,7 +19,7 @@
#include "DialogModel.h"
// PokeModr includes
-// #include "../DialogUI.h"
+#include "../DialogUI.h"
// Pokemod includes
#include "../../pokemod/Dialog.h"
@@ -49,9 +49,8 @@ QVariant DialogModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- // TODO: DialogUI
-// QWidget* widget = new DialogUI(static_cast<Dialog*>(m_object), NULL);
-// return QVariant::fromValue(widget);
+ QWidget* widget = new DialogUI(static_cast<Dialog*>(m_object), NULL);
+ return QVariant::fromValue(widget);
}
return ObjectModel::data(role);
}