| 243 | } |
| 244 | |
| 245 | void NewInstanceDialog::updateDialogState() |
| 246 | { |
| 247 | auto allowOK = creationTask && !instName().isEmpty(); |
| 248 | auto OkButton = m_buttons->button(QDialogButtonBox::Ok); |
| 249 | if(OkButton->isEnabled() != allowOK) |
| 250 | { |
| 251 | OkButton->setEnabled(allowOK); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | QString NewInstanceDialog::instName() const |
| 256 | { |
nothing calls this directly
no test coverage detected