Use Qt coding style.

clang-format -i -style="{BasedOnStyle: Mozilla, IndentWidth: 4, ColumnLimit: 100, PointerBindsToType: false, BreakBeforeBraces: Linux, AccessModifierOffset: -4}" src/*.h src/*.cpp
with some minor hand editing.