Remove QUALITY_EVENT from code

Since we have removed support for the QUALITY_EVENT long time ago, we should remove occurrences of it in the source code.

Edited by Thomas Juerges