Fix compilation with KF5 < 5.71

1 job for master
Status Job ID Name Coverage
  Build
canceled #90885
linux kf5-qt5 qt5.15