[Qt] fix a <Qt4.7 compatibility issue raised in #5228
Merge pull request #5487

270f42d [Qt] fix a <Qt4.7 compatibility issue raised in #5228 (Jonas Schnelli)