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