Fix for Qt 4.