Whitespace changes by clang-format.

These files are the ones with the least number of changes when running
clang-format over them and only the less controversial changes are
included, with a preference for having stay the same where things are
likely to be more controversial.
Well, this doesn't rearrange code, that has to be a manual process. This change is about things that can be done automatically by the tool. Though, there was one case where I inserted a line after a Q_OBJECT, because I noticed there wasn't one.

As for the manual aspects of your formatting suggestions, I don't have any immediate suggestions, but it's also not easy to comment on it without seeing examples and it's not that important at this point.