Doc: small fix in code sample

Task-number: QTBUG-42404
Change-Id: I69adc6e5fde4e6072a279b73b767dadf4220b8c1
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>