diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-27 15:15:17 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-27 15:15:17 +0000 |
| commit | 807071d35159de0660f9df31c48d5bf895ca3622 (patch) | |
| tree | a1e9dbdc1e58b91cd2e4a5e472597b0204ccb41d /pokemodr/models/CoinListModel.cpp | |
| parent | f444f5a45e9325644a360f656176d47d7f540f52 (diff) | |
| download | sigen-807071d35159de0660f9df31c48d5bf895ca3622.tar.gz sigen-807071d35159de0660f9df31c48d5bf895ca3622.tar.xz sigen-807071d35159de0660f9df31c48d5bf895ca3622.zip | |
[FIX] Pokemod objects now know about parents
[FIX] Project includes are now relative
[FIX] Headers included for better detection of invalid headers
[FIX] Validation code commented out so it can be done better
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@111 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/models/CoinListModel.cpp')
| -rw-r--r-- | pokemodr/models/CoinListModel.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemodr/models/CoinListModel.cpp b/pokemodr/models/CoinListModel.cpp index a66a8a35..1b13ebd8 100644 --- a/pokemodr/models/CoinListModel.cpp +++ b/pokemodr/models/CoinListModel.cpp @@ -15,23 +15,23 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -// Qt includes -#include <QDomDocument> -#include <QFile> +// Header include +#include "CoinListModel.h" -// Pokemod includes -#include <CoinList.h> -#include <CoinListObject.h> -#include <Pokemod.h> +// Model includes +#include "CoinListObjectModel.h" // PokeModr includes -#include "CoinListUI.h" +#include "../CoinListUI.h" -// Model includes -#include "CoinListObjectModel.h" +// Pokemod includes +#include "../../pokemod/CoinList.h" +#include "../../pokemod/CoinListObject.h" +#include "../../pokemod/Pokemod.h" -// Header include -#include "CoinListModel.h" +// Qt includes +#include <QDomDocument> +#include <QFile> CoinListModel::CoinListModel(BaseModel* parent, Object* object) : GroupObjectModel(parent, object) @@ -98,7 +98,7 @@ BaseModel* CoinListModel::childItem(const int row) int CoinListModel::indexNumber() const { - return m_object->pokemod()->coinListIndex(m_object->id()); + return static_cast<const Pokemod*>(m_object->pokemod())->coinListIndex(m_object->id()); } bool CoinListModel::insertRows(const int rows) |
