Changed formatting to fit the KDE Coding Standard

Review Request #118091 - Created May 12, 2014 and updated

Uzair Shamim
Certain parts of the code did not follow the kde code guideline and while I know it is not mandatory to follow the guide lines, but I felt I should fix it. There were certain parts I was unsure about so I left them as they were. Most of the changes are just with brace placement.

KDE Coding Standard:
Compiles fine, seems to take screenshots just like before. As I said, 99% of the changes are just brace placement.
Martin Flöser
changing the coding style would completely break the already started port to xcb and thus Qt5, see
  1. Ah okay I see. Thanks for the quick review though Martin.