Restored overwriting paintEvent.