Use nullptr instead of 0
Use constant c-style array instead of fancy Qt data structures