From 9c1388c7964bd3b4ae147e39c146c96dc20947e9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 16 May 2008 16:55:28 +0000 Subject: [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 --- pokemodr/models/CoinListObjectModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pokemodr/models/CoinListObjectModel.cpp') 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(m_object), NULL); return QVariant::fromValue(widget); } - return QVariant(); + return ObjectModel::data(role); } bool CoinListObjectModel::setData(const QVariant& value, int role) -- cgit