Fix compilation with namespaced Qt

Change-Id: I7ba7d6005e001360a1e561a19b106f918f50601e
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>