Fix compile without depercated method

3 jobs for master in 2 minutes and 11 seconds (queued for 5 minutes and 48 seconds)
Name Stage Failure
freebsd_qt515 Build
Cloning into 'ci-utilities/repo-metadata'...
warning: redirecting to
Uploading artifacts for failed job
Uploading artifacts...
Runtime platform
arch=amd64 os=freebsd pid=91835 revision=8925d9a0 version=14.1.0
WARNING: JUnitTestResults.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit status 1