Using QMap instead of linear-map.