As the event handler is in the mainwindow, I though this was the good place, eventually, it could be in the header file, isn't it?