| 120 | } |
| 121 | |
| 122 | void CopyInstanceDialog::updateDialogState() |
| 123 | { |
| 124 | auto allowOK = !instName().isEmpty(); |
| 125 | auto OkButton = ui->buttonBox->button(QDialogButtonBox::Ok); |
| 126 | if (OkButton->isEnabled() != allowOK) { |
| 127 | OkButton->setEnabled(allowOK); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | QString CopyInstanceDialog::instName() const |
| 132 | { |
nothing calls this directly
no test coverage detected