QWidget *Filter::widget(QWidget *parent) { FilterWidget * fw = new FilterWidget(parent); fw->setRadius(mRadius); fw->setEdgePreservation(mEdgePreservation); connect(this, SIGNAL(radiusChanged(int)), fw, SLOT(setRadius(int))); connect(this, SIGNAL(edgePreservationChanged(int)), fw, SLOT(setEdgePreservation(int))); connect(fw, SIGNAL(radiusChanged(int)), this, SLOT(setRadius(int))); connect(fw, SIGNAL(edgePreservationChanged(int)), this, SLOT(setEdgePreservation(int))); return fw; }