Revert "It compiles fine without deprecated method"

it compiles fine in local but not in CI

This reverts commit 6b02cdcc.
2 jobs for master in 8 minutes and 16 seconds (queued for 172 minutes and 52 seconds)
Status Job ID Name Coverage
  Build
passed #84525
build_clazy_clang_tidy

00:04:33

passed #84524
linux kf5-qt5 qt5.15

00:03:42

70.0%