diff options
Diffstat (limited to 'sigmodr/tree/RootModel.cpp')
-rw-r--r-- | sigmodr/tree/RootModel.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sigmodr/tree/RootModel.cpp b/sigmodr/tree/RootModel.cpp index 76202045..55dc71c9 100644 --- a/sigmodr/tree/RootModel.cpp +++ b/sigmodr/tree/RootModel.cpp @@ -24,24 +24,26 @@ // Sigmod includes #include <sigmod/Game.h> -Sigmodr::Tree::RootModel::RootModel() : +using namespace Sigmodr::Tree; + +RootModel::RootModel() : GroupModel(NULL, NULL) { } -bool Sigmodr::Tree::RootModel::setData(const QVariant& value, int role) +bool RootModel::setData(const QVariant& value, int role) { Q_UNUSED(value) Q_UNUSED(role) return false; } -void Sigmodr::Tree::RootModel::addGame(Sigmod::Game* game) +void RootModel::addGame(Sigmod::Game* game) { - addChild(new SigmodModel(this, game)); + addChild(new GameModel(this, game)); } -void Sigmodr::Tree::RootModel::deleteGame(const Sigmod::Game* game) +void RootModel::deleteGame(const Sigmod::Game* game) { for (int i = 0; i < m_objects.size(); ++i) { @@ -54,17 +56,17 @@ void Sigmodr::Tree::RootModel::deleteGame(const Sigmod::Game* game) } } -QString Sigmodr::Tree::RootModel::types() const +QString RootModel::types() const { return "Sigmod"; } -void Sigmodr::Tree::RootModel::addObject(Sigmod::Object* object) +void RootModel::addObject(Sigmod::Object* object) { Q_UNUSED(object) } -void Sigmodr::Tree::RootModel::deleteObject(BaseModel* model) +void RootModel::deleteObject(BaseModel* model) { Q_UNUSED(model) } |