Fixing an build error for versions earlier than Qt 5.1