Fix building in Qt4 (regression from last commit)