Need to to take into account the new signals confOk() and needRestart()

This commit is contained in:
Damien Dupuis 2010-10-14 09:32:53 +00:00
parent dbb56bbc50
commit ec979ff2b8
2 changed files with 5 additions and 3 deletions

View File

@ -38,9 +38,10 @@ ConfigurationDialog::ConfigurationDialog(QWidget* parent): QDialog(parent) {
setWindowTitle("Configure window");
ConfigurationWidget* confWidget = Configuration::get()->buildWidget(ConfigurationWidget::StandAlone);
connect(confWidget , SIGNAL(checkOk()), this, SLOT(close()));
connect(confWidget->getCancelButton(), SIGNAL(clicked()), this, SLOT(close()));
connect(confWidget->getSaveButton() , SIGNAL(clicked()), this, SIGNAL(saveToFile()));
connect(confWidget , SIGNAL(confOk()) , this, SLOT(close()));
connect(confWidget->getCancelButton(), SIGNAL(clicked()) , this, SLOT(close()));
connect(confWidget->getSaveButton() , SIGNAL(clicked()) , this, SIGNAL(saveToFile()));
connect(confWidget , SIGNAL(needRestart()), this, SIGNAL(needRestart()));
QVBoxLayout* vLayout = new QVBoxLayout ();
vLayout->addWidget(confWidget);

View File

@ -38,6 +38,7 @@ class ConfigurationDialog : public QDialog {
signals:
void saveToFile();
void needRestart();
};