Change coding style to use braces on same line as conditional.

This better matches Qt's own coding conventions.