Modernize code
Summary:
- port away from Q_FOREACH
- use override
Test Plan: Start the plasmaphonedialer or plasma-phonebook and check whether contacts are still being displayed.
Reviewers: Plasma:_mobile, apol
Reviewed By: Plasma:_mobile, apol
Subscribers: apol
Differential Revision: https://phabricator.kde.org/D21913