Fix building with QT 4.6

Little fix for building with 4.6