[sysemtray] Port away from foreach
Test Plan: system tray build with -DQT_NO_FOREACH, still does system tray things
Reviewers: Plasma, apol
Reviewed By: apol
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D22066