This changes cleans up some deprecated functions that were removed in Qt6. Some are placed behind version ifdefs and others are replaced for their non-deprecated Qt5 version.
Clicked includes the release, whereas pressed occurs before.