foreach(QComboBox *comboBox, findChildren<QComboBox *>()) {
connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged()));
}
foreach(QCheckBox *checkBox, findChildren<QCheckBox *>()) {
connect(checkBox, SIGNAL(clicked()), this, SLOT(widgetHasChanged()));
}
foreach(QComboBox *comboBox, findChildren<QComboBox *>()) {
connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged()));
}
foreach(QCheckBox *checkBox, findChildren<QCheckBox *>()) {
connect(checkBox, SIGNAL(clicked()), this, SLOT(widgetHasChanged()));
}