Prefer QModelIndex::data(role) over model()->data(index, role)