Fix Qt5 regression.