Skip to content

Fix QHash deprecated declarations in FilterAction class

Anjani Kumar requested to merge filteraction-QHash-fix into gsoc21-qt6-port

The deprecated functions were:-

  • QHash::unite() used in FilterAction::addParameters()
  • QHash::insertMulti() in FilterAction::addParameter()

FilterAction::addParameters() was never called anywhere, so removed thus fixing warning.

I checked all the calls of FilterAction::addParameter() and no filter is adding a key multiple times. So I changed the implementation to use QHash::insert().

Replaced calls of FilterAction::setParameter() to FilterAction::addParameter() since they had the same implementation and removed the former.

Merge request reports