Small coding style issue: please wrap this code like this:

        tileset->addTerrain(terrainMap["name"].toString(),
                            terrainMap["tile"].toInt());