From 807071d35159de0660f9df31c48d5bf895ca3622 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 27 Apr 2008 15:15:17 +0000 Subject: [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 --- pokemodr/StoreUI.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'pokemodr/StoreUI.cpp') diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp index 713563e4..c7043f77 100644 --- a/pokemodr/StoreUI.cpp +++ b/pokemodr/StoreUI.cpp @@ -15,21 +15,21 @@ * with this program. If not, see . */ -// Qt includes -#include -#include - -// General includes -#include -#include +// Header include +#include "StoreUI.h" // Pokemod includes -#include -#include -#include +#include "../pokemod/Item.h" +#include "../pokemod/Pokemod.h" +#include "../pokemod/Store.h" -// Header include -#include "StoreUI.h" +// General includes +#include "../general/BugCatcher.h" +#include "../general/Exception.h" + +// Qt includes +#include +#include StoreUI::StoreUI(Store* store, QWidget* parent) : ObjectUI(parent), @@ -46,9 +46,9 @@ StoreUI::StoreUI(Store* store, QWidget* parent) : void StoreUI::refreshGui() { varItems->clear(); - for (int i = 0; i < m_store->pokemod()->itemCount(); ++i) + for (int i = 0; i < static_cast(m_store->pokemod())->itemCount(); ++i) { - const Item* item = m_store->pokemod()->item(i); + const Item* item = static_cast(m_store->pokemod())->item(i); QListWidgetItem* widgetItem = new QListWidgetItem(item->name(), varItems); widgetItem->setData(Qt::UserRole, item->id()); } -- cgit