summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/SoundModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-13 07:07:57 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-13 07:07:57 +0000
commit56f272b11d13bbc5d829283ccf2813d3a7e41dbc (patch)
treedbd826fc0df0e9b087f5c0d1889e3f9eaca5181f /pokemodr/models/SoundModel.cpp
parent654b25d1b4e73e840e5fe2ab63d844c2157f3379 (diff)
downloadsigen-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/SoundModel.cpp')
-rw-r--r--pokemodr/models/SoundModel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/pokemodr/models/SoundModel.cpp b/pokemodr/models/SoundModel.cpp
index 90112f81..ffec4226 100644
--- a/pokemodr/models/SoundModel.cpp
+++ b/pokemodr/models/SoundModel.cpp
@@ -19,7 +19,7 @@
#include "SoundModel.h"
// PokeModr includes
-// #include "../SoundUI.h"
+#include "../SoundUI.h"
// Pokemod includes
#include "../../pokemod/Sound.h"
@@ -49,9 +49,8 @@ QVariant SoundModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- // TODO: SoundUI
-// QWidget* widget = new SoundUI(static_cast<Sound*>(m_object), NULL);
-// return QVariant::fromValue(widget);
+ QWidget* widget = new SoundUI(static_cast<Sound*>(m_object), NULL);
+ return QVariant::fromValue(widget);
}
return QVariant();
}