fix obsolete function setRoleNames for Qt 5