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/CoinListObjectModel.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/CoinListObjectModel.cpp')
| -rw-r--r-- | pokemodr/models/CoinListObjectModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/models/CoinListObjectModel.cpp b/pokemodr/models/CoinListObjectModel.cpp index dab9b091..ffce721e 100644 --- a/pokemodr/models/CoinListObjectModel.cpp +++ b/pokemodr/models/CoinListObjectModel.cpp @@ -56,7 +56,7 @@ QVariant CoinListObjectModel::data(int role) const if (species) return species->name(); } - return "UNSET"; + return ""; } else if (role == BaseModel::XmlRole) { @@ -69,7 +69,7 @@ QVariant CoinListObjectModel::data(int role) const QWidget* widget = new CoinListObjectUI(static_cast<CoinListObject*>(m_object), NULL); return QVariant::fromValue(widget); } - return QVariant(); + return ObjectModel::data(role); } bool CoinListObjectModel::setData(const QVariant& value, int role) |
