Make it compile without deprecated kf5.71 method

1 job for master in 19 minutes and 32 seconds
Status Job ID Name Coverage
  Build
passed #48221
linux kf5-qt5 qt5.12

00:19:32

48.0%