Add missing new keyword to code snippet

Change-Id: I12ca827ec2663aec95fe872125c2719cb76fe9e9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>