Fix compilation with namespaced Qt.

Change-Id: Iaed86d3b0ccab4f7018f0cbf2e178a892a580606
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>