Fix compilation with Qt4

Change-Id: I537c800bb29cfcaf8e8242122a7a1fd7d89d7d7e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>