summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/RootModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-25 01:38:27 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-25 01:38:27 -0500
commitb90f2dc771801bcfadef322cea8ddc402283d4eb (patch)
tree81e102282933abe87e43a0932d593331aac1d4f5 /sigmodr/tree/RootModel.cpp
parent560054e99ecd692b89fd8fbedcf69d08e45f41bd (diff)
downloadsigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.gz
sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.xz
sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.zip
Fixed namespacing in sigmodr tree
Diffstat (limited to 'sigmodr/tree/RootModel.cpp')
-rw-r--r--sigmodr/tree/RootModel.cpp18
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)
}