I am having trouble with the following code can someone explain what i am doing wrong. It is a main window application that has a dialog open up and im trying to create a button that saves the input from the user. but when i press the button it does gives the follwoing error

Qt Code:
  1. Object::connect: No such slot QDialog::SaveSettings() in serverDialog.cpp:6
  2. Object::connect: (sender name: 'pushButton_Save')
  3. Object::connect: (receiver name: 'Dialog')
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #ifndef SERVERDIALOG_H
  2. #define SERVERDIALOG_H
  3.  
  4. #include "ui_serverDialog.h"
  5.  
  6. class ServerDialog: public QDialog, public Ui::Dialog
  7. {
  8. public:
  9. ServerDialog();
  10. protected slots:
  11. void SaveSettings();
  12.  
  13. };
  14.  
  15. #endif // SERVERDIALOG_H
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include "serverDialog.h"
  2.  
  3. ServerDialog::ServerDialog()
  4. {
  5. setupUi(this);
  6. connect(pushButton_Save, SIGNAL(clicked()), this, SLOT(SaveSettings()));
  7. connect(pushButton_Quit, SIGNAL(clicked()), this, SLOT(close()));
  8. }
  9.  
  10. void ServerDialog::SaveSettings()
  11. {
  12.  
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 

This was created using Qtcreator.
if i change the slot to close() it works perfectly. how would i get the method SaveSettings to run.

many thanks

jeff