Hi i have the following code and it does not even display the message box, what am I missing?

DialogNuevoPeriodo.h
Qt Code:
  1. class DialogNuevoPeriodo : public QDialog{
  2.  
  3. public:
  4. ...
  5. private slots:
  6. ...
  7. void setCalendarYear(const QString &);
  8. ...
  9. private:
  10. QLabel *lAnio;
  11. ...
  12. };
To copy to clipboard, switch view to plain text mode 
DialogNuevoPeriodo.cpp
Qt Code:
  1. #include "DialogNuevoPeriodo.h"
  2. DialogNuevoPeriodo::DialogNuevoPeriodo(QWidget *parent)
  3. : QDialog(parent){
  4. ...
  5. leAnio = new QLineEdit;
  6. leAnio->setValidator(new QIntValidator(1800, QDate::currentDate().year(), this));
  7. ...
  8. connect(leAnio, SIGNAL(textChanged(const QString &)),
  9. this, SLOT(setCalendarYear(const QString &)));
  10. ...
  11. }
  12. ...
  13. void DialogNuevoPeriodo::setCalendarYear(const QString &text){
  14. QMessageBox::warning(this, tr("something"),
  15. "something"
  16. );
  17. }
  18. ...
To copy to clipboard, switch view to plain text mode 
it just does nothing in the slot why is that? thanks