qtcompat_p.h: Sync from upstream version

Authored by kfunk on Tue, Sep 5, 9:58 AM.