| 88 | } |
| 89 | |
| 90 | void CopyInstanceDialog::updateDialogState() |
| 91 | { |
| 92 | auto allowOK = !instName().isEmpty(); |
| 93 | auto OkButton = ui->buttonBox->button(QDialogButtonBox::Ok); |
| 94 | if(OkButton->isEnabled() != allowOK) |
| 95 | { |
| 96 | OkButton->setEnabled(allowOK); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | QString CopyInstanceDialog::instName() const |
| 101 | { |
nothing calls this directly
no test coverage detected