From 8dddfc1ef55773cdf878e413d82142781a6e444b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 25 Feb 2009 01:19:46 -0500 Subject: Renamed from Sigmod to Game in sigmodr tree --- sigmodr/tree/SigmodrTreeModel.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sigmodr/tree/SigmodrTreeModel.cpp') 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 +#include // Qt includes #include @@ -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(getItem(curIndex)->object()); + return qobject_cast(getItem(curIndex)->object()); } void Sigmodr::Tree::SigmodrTreeModel::rowsChanged(const QList& rows) @@ -207,7 +207,7 @@ void Sigmodr::Tree::SigmodrTreeModel::rowsChanged(const QList& rows) if (curIndex.isValid()) { emit(dataChanged(curIndex, curIndex)); - emit(dirty(findSigmod(curIndex), true)); + emit(dirty(findGame(curIndex), true)); } else reset(); -- cgit