fix compilation error with QT_VERSION < 0x050000

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