Restore Qt 4.6.2 compatibility.
Merge pull request #5 from saschazelzer/qt-4.6.2-compatibility

Restore Qt 4.6.2 compatibility.