diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:19:46 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:19:46 -0500 |
commit | 8dddfc1ef55773cdf878e413d82142781a6e444b (patch) | |
tree | 1fbd160be276c0cc89aa11971d2daab4ecc1791c /sigmodr/tree/SkinGroupModel.cpp | |
parent | 0d38afceb6fe92f1a315c527635522dc6e0346cb (diff) | |
download | sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.tar.gz sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.tar.xz sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.zip |
Renamed from Sigmod to Game in sigmodr tree
Diffstat (limited to 'sigmodr/tree/SkinGroupModel.cpp')
-rw-r--r-- | sigmodr/tree/SkinGroupModel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sigmodr/tree/SkinGroupModel.cpp b/sigmodr/tree/SkinGroupModel.cpp index 7923b5c9..c725ac07 100644 --- a/sigmodr/tree/SkinGroupModel.cpp +++ b/sigmodr/tree/SkinGroupModel.cpp @@ -22,17 +22,17 @@ #include "SkinModel.h" // Sigmod includes -#include <sigmod/Sigmod.h> +#include <sigmod/Game.h> #include <sigmod/Skin.h> // KDE includes #include <KMenu> -Sigmodr::Tree::SkinGroupModel::SkinGroupModel(BaseModel* parent, Sigmod::Sigmod* sigmod) : - GroupModel(parent, sigmod, "Skins") +Sigmodr::Tree::SkinGroupModel::SkinGroupModel(BaseModel* parent, Sigmod::Game* game) : + GroupModel(parent, game, "Skins") { - for (int i = 0; i < sigmod->skinCount(); ++i) - addObject(sigmod->skin(i)); + for (int i = 0; i < game->skinCount(); ++i) + addObject(game->skin(i)); } QVariant Sigmodr::Tree::SkinGroupModel::data(const int role) const @@ -56,7 +56,7 @@ bool Sigmodr::Tree::SkinGroupModel::setData(const QVariant& value, int role) QDomDocument xml; if (loadFromData(data, &xml) && (xml.doctype().name() == "Skin")) { - addObject(qobject_cast<Sigmod::Sigmod*>(m_object)->newSkin(xml.documentElement())); + addObject(qobject_cast<Sigmod::Game*>(m_object)->newSkin(xml.documentElement())); return true; } } @@ -72,7 +72,7 @@ QString Sigmodr::Tree::SkinGroupModel::types() const void Sigmodr::Tree::SkinGroupModel::addObject(Sigmod::Object* object) { if (!object) - object = qobject_cast<Sigmod::Sigmod*>(m_object)->newSkin(); + object = qobject_cast<Sigmod::Game*>(m_object)->newSkin(); if (object->className() == "Skin") addChild(new SkinModel(this, qobject_cast<Sigmod::Skin*>(object))); } @@ -82,7 +82,7 @@ void Sigmodr::Tree::SkinGroupModel::deleteObject(BaseModel* model) const int index = find(model); if (0 <= index) { - qobject_cast<Sigmod::Sigmod*>(m_object)->deleteSkin(index); + qobject_cast<Sigmod::Game*>(m_object)->deleteSkin(index); m_objects[index]->deleteLater(); m_objects.removeAt(index); childRowChanged(index); |