Fixed compile problem regarding QEvent.