summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/StoreModel.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/models/StoreModel.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/models/StoreModel.cpp')
-rw-r--r--pokemodr/models/StoreModel.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/pokemodr/models/StoreModel.cpp b/pokemodr/models/StoreModel.cpp
index acf100fd..e5ad6cc6 100644
--- a/pokemodr/models/StoreModel.cpp
+++ b/pokemodr/models/StoreModel.cpp
@@ -15,19 +15,19 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Qt includes
-#include <QDomDocument>
-#include <QFile>
-
-// Pokemod includes
-#include <Pokemod.h>
-#include <Store.h>
+// Header include
+#include "StoreModel.h"
// PokeModr includes
-#include "StoreUI.h"
+#include "../StoreUI.h"
-// Header include
-#include "StoreModel.h"
+// Pokemod includes
+#include "../../pokemod/Pokemod.h"
+#include "../../pokemod/Store.h"
+
+// Qt includes
+#include <QDomDocument>
+#include <QFile>
StoreModel::StoreModel(BaseModel* parent, Object* object) :
ObjectModel(parent, object)
@@ -80,5 +80,5 @@ bool StoreModel::setData(const QVariant& value, int role)
int StoreModel::indexNumber() const
{
- return m_object->pokemod()->storeIndex(m_object->id());
+ return static_cast<const Pokemod*>(m_object->pokemod())->storeIndex(m_object->id());
}