Put code of public header depending on deprecated Qt API in deprecation wrapper
Otherwise the build will fail for projects that exclude deprecated Qt API & include this header, like dolphin.
Otherwise the build will fail for projects that exclude deprecated Qt API & include this header, like dolphin.