Fix blur dialog
This commit is contained in:
parent
dfd0563278
commit
868a600e26
@ -22,12 +22,13 @@ BlurDialog::BlurDialog(QGraphicsBlurEffect *e, QWidget *parent) : QDialog(parent
|
|||||||
hints.setFlag(QGraphicsBlurEffect::QualityHint, ui->quality->isChecked());
|
hints.setFlag(QGraphicsBlurEffect::QualityHint, ui->quality->isChecked());
|
||||||
effect->setBlurHints(hints);
|
effect->setBlurHints(hints);
|
||||||
effect->setBlurRadius(ui->radSpinner->value());
|
effect->setBlurRadius(ui->radSpinner->value());
|
||||||
setResult(QDialog::Accepted);
|
accept();
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, [&] {
|
connect(ui->buttonBox, &QDialogButtonBox::rejected, [&] {
|
||||||
setResult(QDialog::Rejected);
|
reject();
|
||||||
close();
|
close();
|
||||||
|
emit finished(result());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user