Fix for Qt 4.6