Fix building with QT 4.6
Merge pull request #107 from Elbandi/testing

Fix building with QT 4.6