diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:19:46 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:19:46 -0500 |
commit | 8dddfc1ef55773cdf878e413d82142781a6e444b (patch) | |
tree | 1fbd160be276c0cc89aa11971d2daab4ecc1791c /sigmodr/tree/SigmodrTreeModel.cpp | |
parent | 0d38afceb6fe92f1a315c527635522dc6e0346cb (diff) | |
download | sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.tar.gz sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.tar.xz sigen-8dddfc1ef55773cdf878e413d82142781a6e444b.zip |
Renamed from Sigmod to Game in sigmodr tree
Diffstat (limited to 'sigmodr/tree/SigmodrTreeModel.cpp')
-rw-r--r-- | sigmodr/tree/SigmodrTreeModel.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sigmodr/tree/SigmodrTreeModel.cpp b/sigmodr/tree/SigmodrTreeModel.cpp index b57e762f..b3832a7b 100644 --- a/sigmodr/tree/SigmodrTreeModel.cpp +++ b/sigmodr/tree/SigmodrTreeModel.cpp @@ -22,7 +22,7 @@ #include "RootModel.h" // Sigmod includes -#include <sigmod/Sigmod.h> +#include <sigmod/Game.h> // Qt includes #include <QtCore/QMimeData> @@ -112,7 +112,7 @@ bool Sigmodr::Tree::SigmodrTreeModel::setData(const QModelIndex& index, const QV if (success) { emit(dataChanged(index, index)); - emit(dirty(findSigmod(index), true)); + emit(dirty(findGame(index), true)); } return success; } @@ -171,23 +171,23 @@ bool Sigmodr::Tree::SigmodrTreeModel::dropMimeData(const QMimeData* data, Qt::Dr } } if (success) - emit(dirty(findSigmod(parent), true)); + emit(dirty(findGame(parent), true)); return success; } -void Sigmodr::Tree::SigmodrTreeModel::addSigmod(Sigmod::Sigmod* sigmod) +void Sigmodr::Tree::SigmodrTreeModel::addGame(Sigmod::Game* game) { - m_root->addSigmod(sigmod); + m_root->addGame(sigmod); reset(); } -void Sigmodr::Tree::SigmodrTreeModel::deleteSigmod(const Sigmod::Sigmod* sigmod) +void Sigmodr::Tree::SigmodrTreeModel::deleteGame(const Sigmod::Game* game) { - m_root->deleteSigmod(sigmod); + m_root->deleteGame(game); reset(); } -const Sigmod::Sigmod* Sigmodr::Tree::SigmodrTreeModel::findSigmod(const QModelIndex& index) const +const Sigmod::Game* Sigmodr::Tree::SigmodrTreeModel::findGame(const QModelIndex& index) const { QModelIndex curIndex = index; QModelIndex parIndex = parent(curIndex); @@ -196,7 +196,7 @@ const Sigmod::Sigmod* Sigmodr::Tree::SigmodrTreeModel::findSigmod(const QModelIn curIndex = parIndex; parIndex = parent(curIndex); } - return qobject_cast<const Sigmod::Sigmod*>(getItem(curIndex)->object()); + return qobject_cast<const Sigmod::Game*>(getItem(curIndex)->object()); } void Sigmodr::Tree::SigmodrTreeModel::rowsChanged(const QList<int>& rows) @@ -207,7 +207,7 @@ void Sigmodr::Tree::SigmodrTreeModel::rowsChanged(const QList<int>& rows) if (curIndex.isValid()) { emit(dataChanged(curIndex, curIndex)); - emit(dirty(findSigmod(curIndex), true)); + emit(dirty(findGame(curIndex), true)); } else reset(); |