summaryrefslogtreecommitdiffstats
path: root/pokemodr/CoinListUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-04-27 15:15:17 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-04-27 15:15:17 +0000
commit807071d35159de0660f9df31c48d5bf895ca3622 (patch)
treea1e9dbdc1e58b91cd2e4a5e472597b0204ccb41d /pokemodr/CoinListUI.cpp
parentf444f5a45e9325644a360f656176d47d7f540f52 (diff)
downloadsigen-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/CoinListUI.cpp')
-rw-r--r--pokemodr/CoinListUI.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp
index bf854781..d8eadc3d 100644
--- a/pokemodr/CoinListUI.cpp
+++ b/pokemodr/CoinListUI.cpp
@@ -15,20 +15,20 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Qt includes
-#include <QVariant>
-
-// General includes
-#include <BugCatcher.h>
-#include <Exception.h>
+// Header include
+#include "CoinListUI.h"
// Pokemod includes
-#include <Item.h>
-#include <ItemEffect.h>
-#include <Pokemod.h>
+#include "../pokemod/Item.h"
+#include "../pokemod/ItemEffect.h"
+#include "../pokemod/Pokemod.h"
-// Header include
-#include "CoinListUI.h"
+// General includes
+#include "../general/BugCatcher.h"
+#include "../general/Exception.h"
+
+// Qt includes
+#include <QVariant>
CoinListUI::CoinListUI(CoinList* coinList, QWidget* parent) :
ObjectUI(parent),
@@ -45,9 +45,9 @@ CoinListUI::CoinListUI(CoinList* coinList, QWidget* parent) :
void CoinListUI::refreshGui()
{
varValue->clear();
- for (int i = 0; i < m_coinList->pokemod()->itemCount(); ++i)
+ for (int i = 0; i < static_cast<const Pokemod*>(m_coinList->pokemod())->itemCount(); ++i)
{
- const Item* item = m_coinList->pokemod()->item(i);
+ const Item* item = static_cast<const Pokemod*>(m_coinList->pokemod())->item(i);
for (int j = 0; j < item->effectCount(); ++j)
{
const ItemEffect* effect = item->effect(j);