QtEventHandler varnings fix