From c81259d5ea3cf4659affdb51b7622c61685a82ff Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Feb 2009 01:08:35 -0500 Subject: Added the Sigmod namespace to the sigmodrtree sources --- sigmodr/tree/SigmodrTreeModel.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sigmodr/tree/SigmodrTreeModel.cpp') 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 #include +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(getItem(curIndex)->object()); + return qobject_cast(getItem(curIndex)->object()); } void SigmodrTreeModel::rowsChanged(const QList& rows) -- cgit