Fix build on Qt 4 (hopefully) after 6c52ac736