Refactoring deprecated Qt functions
Refactoring various deprecated Qt functions:
- Either putting functions behind an #ifdef guard in case new functions have only been introduced in recent Qt releases in order to keep the code compiling on older Qt releases, -- or --
- replacing the deprecated code with the recommended alternative if the alternative has been available even in older Qt releases.