Fix API deprecation warning

2 jobs for master in 23 seconds (queued for 6 seconds)
Name Stage Failure
failed
suse_tumbleweed_qt515 Build
No job log
failed
freebsd_qt515 Build
No job log