Port some qt5.15 deprecated method

Authored by mlaurent on Jan 17 2020, 7:56 PM.