Revert "It compiles fine without deprecated method"
This reverts commit e6a9a8c3b94722bd9eed3d034221e6f6cdf54b54.
This breaks the build against Qt 5.14