14 connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked,
15 this, &QDialog::accept);
16 connect(m_ui.buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked,
17 this, &QDialog::reject);
18 connect(m_ui.lineEdit, &QLineEdit::textChanged,
this, &QFilterNameDialog::updateOkButton);
19 m_ui.buttonBox->button(QDialogButtonBox::Ok)->setDisabled(
true);