diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-16 16:55:28 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-16 16:55:28 +0000 |
| commit | 9c1388c7964bd3b4ae147e39c146c96dc20947e9 (patch) | |
| tree | 09628e1b12604d3194b7056c31df0573af4239bd /pokemodr/models/MapWildListModel.cpp | |
| parent | a2a81fa0eee00670a1e18918458f6ac12860d59c (diff) | |
| download | sigen-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/MapWildListModel.cpp')
| -rw-r--r-- | pokemodr/models/MapWildListModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/models/MapWildListModel.cpp b/pokemodr/models/MapWildListModel.cpp index 09da76f4..30a5b1af 100644 --- a/pokemodr/models/MapWildListModel.cpp +++ b/pokemodr/models/MapWildListModel.cpp @@ -48,7 +48,7 @@ QVariant MapWildListModel::data(int role) const { if (static_cast<MapWildList*>(m_object)->control() < MapWildList::End) return MapWildList::ControlStr[static_cast<MapWildList*>(m_object)->control()]; - return "UNSET"; + return ""; } else if (role == BaseModel::XmlRole) { @@ -61,7 +61,7 @@ QVariant MapWildListModel::data(int role) const QWidget* widget = new MapWildListUI(static_cast<MapWildList*>(m_object), NULL); return QVariant::fromValue(widget); } - return QVariant(); + return GroupObjectModel::data(role); } int MapWildListModel::rowCount() const |
