summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/MapTrainerTeamMemberModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/MapTrainerTeamMemberModel.cpp')
-rw-r--r--sigmodr/tree/MapTrainerTeamMemberModel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/MapTrainerTeamMemberModel.cpp b/sigmodr/tree/MapTrainerTeamMemberModel.cpp
index 2e49a91c..e6c20c96 100644
--- a/sigmodr/tree/MapTrainerTeamMemberModel.cpp
+++ b/sigmodr/tree/MapTrainerTeamMemberModel.cpp
@@ -33,10 +33,11 @@
// KDE includes
#include <KMenu>
+using namespace Sigmod;
using namespace Sigmodr::Widgets;
using namespace Sigmodr::Tree;
-MapTrainerTeamMemberModel::MapTrainerTeamMemberModel(BaseModel* parent, Sigmod::MapTrainerTeamMember* teamMember) :
+MapTrainerTeamMemberModel::MapTrainerTeamMemberModel(BaseModel* parent, MapTrainerTeamMember* teamMember) :
ObjectModel(parent, teamMember)
{
}
@@ -45,7 +46,7 @@ QVariant MapTrainerTeamMemberModel::data(int role) const
{
if (role == Qt::DisplayRole)
{
- const Sigmod::Species* species = m_object->game()->speciesById(qobject_cast<Sigmod::MapTrainerTeamMember*>(m_object)->species());
+ const Species* species = m_object->game()->speciesById(qobject_cast<MapTrainerTeamMember*>(m_object)->species());
if (species)
return species->name();
return "";
@@ -58,7 +59,7 @@ QVariant MapTrainerTeamMemberModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- QWidget* widget = new MapTrainerTeamMemberUI(qobject_cast<Sigmod::MapTrainerTeamMember*>(m_object), NULL);
+ QWidget* widget = new MapTrainerTeamMemberUI(qobject_cast<MapTrainerTeamMember*>(m_object), NULL);
return QVariant::fromValue(widget);
}
else if (role == BaseModel::ContextMenuRole)