tabswitchertest: use QFETCH
Summary: and add const to the method in tabswitcherfilesmodel
Reviewers: Kate, dhaumann
Reviewed By: Kate, dhaumann
Subscribers: dhaumann, kwrite-devel
Tags: Kate
Differential Revision: https://phabricator.kde.org/D16209