Replace QHash with QMultiHash to avoid a deprecation warning.