summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/SigmodrTreeModel.cpp
diff options
context:
space:
mode:
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)