Qt: Cleanup of main_interface.