Make it compile against last qt5.15 without deprecated method

Authored by mlaurent on Feb 14 2020, 12:50 PM.