make hash calc qt4-qt5 compatible