Compile with -DQT_DISABLE_DEPRECATED_BEFORE=0x050d00
With this patch, Kate compiles even if deprecated Qt functions are disabled.