Fix compilation with Qt 4.

Change-Id: I0e2b78ed0387a2c2a3ad023549cd614492121453
Reviewed-by: Orgad Shaneh <orgads@gmail.com>