Discouple "clicked()" signal from apply button to close

of the standalone dialog.
This commit is contained in:
Jean-Paul Chaput 2010-10-08 09:43:26 +00:00
parent 4dddfbba98
commit 446ccd6d58
3 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@ ConfigurationDialog::ConfigurationDialog(QWidget* parent): QDialog(parent) {
setWindowTitle("Configure window");
ConfigurationWidget* confWidget = Configuration::get()->buildWidget(ConfigurationWidget::StandAlone);
connect(confWidget->getApplyButton() , SIGNAL(clicked()), this, SLOT(close()));
connect(confWidget , SIGNAL(checkOk()), this, SLOT(close()));
connect(confWidget->getCancelButton(), SIGNAL(clicked()), this, SLOT(close()));
connect(confWidget->getSaveButton() , SIGNAL(clicked()), this, SIGNAL(saveToFile()));

View File

@ -206,6 +206,8 @@ namespace Cfg {
if ( _log == NULL ) _log = new LogWidget(this);
_log->updateLogs ();
_log->exec ();
} else {
emit checkOk();
}
}

View File

@ -79,6 +79,7 @@ namespace Cfg {
void applyClicked ();
signals:
void updateParameters ();
void checkOk ();
private:
unsigned int _flags;
QFont _boldFont;