Restore Qt 4.6.2 compatibility.