| 265 | } |
| 266 | |
| 267 | void NewInstanceDialog::updateDialogState() |
| 268 | { |
| 269 | auto allowOK = creationTask && !instName().isEmpty(); |
| 270 | auto OkButton = m_buttons->button(QDialogButtonBox::Ok); |
| 271 | if (OkButton->isEnabled() != allowOK) { |
| 272 | OkButton->setEnabled(allowOK); |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | QString NewInstanceDialog::instName() const |
| 277 | { |
nothing calls this directly
no test coverage detected