From 8dddfc1ef55773cdf878e413d82142781a6e444b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 25 Feb 2009 01:19:46 -0500 Subject: Renamed from Sigmod to Game in sigmodr tree --- sigmodr/tree/AuthorGroupModel.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sigmodr/tree/AuthorGroupModel.cpp') diff --git a/sigmodr/tree/AuthorGroupModel.cpp b/sigmodr/tree/AuthorGroupModel.cpp index 8ff2563f..2d910c33 100644 --- a/sigmodr/tree/AuthorGroupModel.cpp +++ b/sigmodr/tree/AuthorGroupModel.cpp @@ -23,16 +23,16 @@ // Sigmod includes #include -#include +#include // KDE includes #include -Sigmodr::Tree::AuthorGroupModel::AuthorGroupModel(BaseModel* parent, Sigmod::Sigmod* sigmod) : - GroupModel(parent, sigmod, "Authors") +Sigmodr::Tree::AuthorGroupModel::AuthorGroupModel(BaseModel* parent, Sigmod::Game* game) : + GroupModel(parent, game, "Authors") { - for (int i = 0; i < sigmod->authorCount(); ++i) - addObject(sigmod->author(i)); + for (int i = 0; i < game->authorCount(); ++i) + addObject(game->author(i)); } QVariant Sigmodr::Tree::AuthorGroupModel::data(const int role) const @@ -56,7 +56,7 @@ bool Sigmodr::Tree::AuthorGroupModel::setData(const QVariant& value, int role) QDomDocument xml; if (loadFromData(data, &xml) && (xml.doctype().name() == "Author")) { - addObject(qobject_cast(m_object)->newAuthor(xml.documentElement())); + addObject(qobject_cast(m_object)->newAuthor(xml.documentElement())); return true; } } @@ -72,7 +72,7 @@ QString Sigmodr::Tree::AuthorGroupModel::types() const void Sigmodr::Tree::AuthorGroupModel::addObject(Sigmod::Object* object) { if (!object) - object = qobject_cast(m_object)->newAuthor(); + object = qobject_cast(m_object)->newAuthor(); if (object->className() == "Author") addChild(new AuthorModel(this, qobject_cast(object))); } @@ -82,7 +82,7 @@ void Sigmodr::Tree::AuthorGroupModel::deleteObject(BaseModel* model) const int index = find(model); if (0 <= index) { - qobject_cast(m_object)->deleteAuthor(index); + qobject_cast(m_object)->deleteAuthor(index); m_objects[index]->deleteLater(); m_objects.removeAt(index); childRowChanged(index); -- cgit