The #ifdefs were for versions of Qt less than 5.15, and since we now require Qt 5.15.2, they're useless.
#ifdef