summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/SigmodrTreeModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-28 01:08:35 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-28 01:08:35 -0500
commitc81259d5ea3cf4659affdb51b7622c61685a82ff (patch)
tree7d00b36089fe22b1b6659b89c93d5b51e3337d09 /sigmodr/tree/SigmodrTreeModel.cpp
parentefb2daeb653694f29e12ee09348ccf68c904cc83 (diff)
downloadsigen-c81259d5ea3cf4659affdb51b7622c61685a82ff.tar.gz
sigen-c81259d5ea3cf4659affdb51b7622c61685a82ff.tar.xz
sigen-c81259d5ea3cf4659affdb51b7622c61685a82ff.zip
Added the Sigmod namespace to the sigmodrtree sources
Diffstat (limited to 'sigmodr/tree/SigmodrTreeModel.cpp')
-rw-r--r--sigmodr/tree/SigmodrTreeModel.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/sigmodr/tree/SigmodrTreeModel.cpp b/sigmodr/tree/SigmodrTreeModel.cpp
index 39320840..1dcba153 100644
--- a/sigmodr/tree/SigmodrTreeModel.cpp
+++ b/sigmodr/tree/SigmodrTreeModel.cpp
@@ -30,6 +30,7 @@
#include <QtCore/QUrl>
#include <QtXml/QDomDocument>
+using namespace Sigmod;
using namespace Sigmodr::Tree;
SigmodrTreeModel::SigmodrTreeModel(QObject* parent) :
@@ -177,19 +178,19 @@ bool SigmodrTreeModel::dropMimeData(const QMimeData* data, Qt::DropAction action
return success;
}
-void SigmodrTreeModel::addGame(Sigmod::Game* game)
+void SigmodrTreeModel::addGame(Game* game)
{
m_root->addGame(game);
reset();
}
-void SigmodrTreeModel::deleteGame(const Sigmod::Game* game)
+void SigmodrTreeModel::deleteGame(const Game* game)
{
m_root->deleteGame(game);
reset();
}
-const Sigmod::Game* SigmodrTreeModel::findGame(const QModelIndex& index) const
+const Game* SigmodrTreeModel::findGame(const QModelIndex& index) const
{
QModelIndex curIndex = index;
QModelIndex parIndex = parent(curIndex);
@@ -198,7 +199,7 @@ const Sigmod::Game* SigmodrTreeModel::findGame(const QModelIndex& index) const
curIndex = parIndex;
parIndex = parent(curIndex);
}
- return qobject_cast<const Sigmod::Game*>(getItem(curIndex)->object());
+ return qobject_cast<const Game*>(getItem(curIndex)->object());
}
void SigmodrTreeModel::rowsChanged(const QList<int>& rows)