Make it compile against qt5.15 without deprecated method

Authored by mlaurent on Feb 16 2020, 1:34 PM.