Qt: Fix Patch

Addresses the issues with the inline patch discussed in #32215.
Upstream is also applying this patch (or one extremely similar) to all
future Qt4 versions, so it doesn’t need to be scoped to any specific OS
X version.

Closes #32220.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>