Use specific signals and slots for different events.