It compiles fine without deprecated method

2 jobs for master
Status Job ID Name Coverage
  Build
canceled build_clazy_clang_tidy #84504

canceled linux kf5-qt5 qt5.15 #84503