Changed QHash to QMap