[qt5] Start contacts porting; whitespace fixes