Make it compile without deprecated method

2 jobs for master in 14 minutes and 40 seconds (queued for 200 minutes and 14 seconds)
Status Job ID Name Coverage
  Build
canceled #78740
build_clazy_clang_tidy

passed #78739
linux kf5-qt5 qt5.14

00:14:40

0.0%