Revert "Seems like this patch was backported to Qt 5.9"
This reverts commit 2fc80dd6d9d00fa376a5df7add43670c38de9dae.
Not on 5.10.1