Revert "It compiles fine without deprecated method"

It compiles fine in local but not in CI

This reverts commit 3407c30f.
2 jobs for master in 9 minutes and 4 seconds (queued for 211 minutes and 15 seconds)
Status Job ID Name Coverage
  Build
passed #84531
build_clazy_clang_tidy

00:05:13

passed #84530
linux kf5-qt5 qt5.15

00:03:50

53.0%