From 7e3bf1853184f96eb5be47dd78ebe21fdc170a01 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 25 May 2008 21:17:56 +0000 Subject: [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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@173 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/models/CoinListModel.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'pokemodr/models/CoinListModel.cpp') 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(m_object)->newObject())); - return true; -} - -bool CoinListModel::removeRows(const int position, const int rows) -{ - for (int i = 0; i < rows; ++i) - { - static_cast(m_object)->deleteObject(position); - delete m_objects[position]; - m_objects.removeAt(position); - } - return true; -} - void CoinListModel::setupData() { CoinList* coinList = static_cast(m_object); -- cgit