Added Qwt 6 compatibility to event logger.
Fixed memory leaks