Fix a compilation error under Qt 4