Fix compile without depercated method

2 jobs for master in 1 minute and 36 seconds (queued for 6 minutes and 15 seconds)
Name Stage Failure
failed
freebsd_qt515 Build There has been a runner system failure, please try again
No job log