Use forward declaration when it's possible

2 jobs for master in 7 minutes and 27 seconds (queued for 6 minutes and 30 seconds)
Status Name Job ID Coverage
  Build
passed build_clazy_clang_tidy #104003

00:04:11

passed linux kf5-qt5 qt5.15 #104002

00:03:16

35.0%