UI: Fix close display before native surfaces

A QPlatformSurfaceEvent constant is used in a switch that only accept
QEvent type.

timerEvent() is missing the override keyword.

https://github.com/obsproject/obs-studio/commit/f8d415afbee4873a3eb15c7e77833fbee6c87871
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f