FlatpakPermissionModel: Refactor loops, use const auto more
It makes it easier to reason about loops and refactor & fix them further.
This commit also ports readEntry usages to readXdgListEntry. Note that it needs further fixing to actually parse content of those entries instead of just matching on QList::contains raw strings.
Edited by ivan tkachenko