Revert "Make it compile against last qt5.15 without deprecated method"
This reverts commit 9c901d16ae43240a4854dd5a28de3ef43a003387.