Port away from deprecated enum

We already require Qt 5.15
1 job for master in 5 minutes and 44 seconds (queued for 77 minutes and 41 seconds)
Status Name Job ID Coverage
  Build
passed linux kf5-qt5 qt5.15 #115562

00:05:44

52.0%