Implement roleNames, remove call to setRoleNames

as setRoleNames is deprecated in Qt5.

This commit does not change functionality but helps to keep the same
codebase for Qt4 and Qt5