diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-25 21:17:56 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-25 21:17:56 +0000 |
| commit | 7e3bf1853184f96eb5be47dd78ebe21fdc170a01 (patch) | |
| tree | 7c937aa87fa165fc62bb49d71983e1512f2371c2 /pokemodr/models/CoinListModel.cpp | |
| parent | dec252e25fc63fe1bb321dd87772181fc76e998f (diff) | |
| download | sigen-7e3bf1853184f96eb5be47dd78ebe21fdc170a01.tar.gz sigen-7e3bf1853184f96eb5be47dd78ebe21fdc170a01.tar.xz sigen-7e3bf1853184f96eb5be47dd78ebe21fdc170a01.zip | |
[ADD] More documentation
[FIX] Cleaned out some code from the models
[FIX] Matrix should now work a lot better now
[FIX] Opening/Saving/Closing PokéMods should be much cleaner now
[FIX] currentPokemod code is now in the tree class
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@173 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/CoinListModel.cpp')
| -rw-r--r-- | pokemodr/models/CoinListModel.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pokemodr/models/CoinListModel.cpp b/pokemodr/models/CoinListModel.cpp index fa5f8a0d..e12a3908 100644 --- a/pokemodr/models/CoinListModel.cpp +++ b/pokemodr/models/CoinListModel.cpp @@ -83,24 +83,6 @@ bool CoinListModel::setData(const QVariant& value, int role) return false; } -bool CoinListModel::insertRows(const int rows) -{ - for (int i = 0; i < rows; ++i) - m_objects.append(new CoinListObjectModel(this, static_cast<CoinList*>(m_object)->newObject())); - return true; -} - -bool CoinListModel::removeRows(const int position, const int rows) -{ - for (int i = 0; i < rows; ++i) - { - static_cast<CoinList*>(m_object)->deleteObject(position); - delete m_objects[position]; - m_objects.removeAt(position); - } - return true; -} - void CoinListModel::setupData() { CoinList* coinList = static_cast<CoinList*>(m_object); |
