Fix compilation with Qt 4.

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