From 39a1b43adbebb73b87c4a2346b9ccb2c2a34753b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 7 May 2008 02:08:51 +0000 Subject: [FIX] Added Q_OBJECT to pokemod classes [FIX] UI classes fixed to work with new API [FIX] Qmake files fixed git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@121 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/TilemapModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pokemodr/TilemapModel.cpp') diff --git a/pokemodr/TilemapModel.cpp b/pokemodr/TilemapModel.cpp index b903fd00..dc205250 100644 --- a/pokemodr/TilemapModel.cpp +++ b/pokemodr/TilemapModel.cpp @@ -78,7 +78,7 @@ bool TilemapModel::setData(const QModelIndex& index, const QVariant& value, int if (role != Qt::EditRole) return false; // emit(setDataChanged(index, index)); - (*m_map)(index.row(), index.column()) = m_pokemod->tile(value.toInt())->id(); + m_map->set(index.row(), index.column(), m_pokemod->tile(value.toInt())->id()); emit(dataChanged(index, index)); return true; } -- cgit