This method is very hot because every Qt event that any object receives from any thread goes through here. Perhaps we need UNLIKELY compiler statements on this block since it is very rare.