Fix build with namespaced Qt.

Change-Id: I6374e4d8153e2de390f408454c650c21de57a175
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>