This breaks the build, please fix: https://build.kde.org/job/Applications%20gwenview%20kf5-qt5%20FreeBSDQt5.10/63/console
Also, please coordinate with the Gwenview team before doing such large changes in the future, e.g. by opening a Diff on Phabricator.
(In particular, this makes merging stable to master more difficult for us for the whole lifetime of 18.08 and increases compile times when switching branches. As such, it's preferable to defer such changes to the time window between the last stable release (18.08.3) and the beta of the next major release (18.12).)
Checked this now more thoroughly. There are a couple of unrelated changes that sneaked in, but it's mostly fine I guess.
We'll tackle some of the remaining Clazy and compiler warnings later.
Unrelated change, now does not reflect the information from below anymore.