| 446 | } |
| 447 | |
| 448 | void CMakeSetupDialog::doConfigure() |
| 449 | { |
| 450 | if (this->CurrentState == Configuring) { |
| 451 | // stop configure |
| 452 | doInterrupt(); |
| 453 | return; |
| 454 | } |
| 455 | |
| 456 | if (!prepareConfigure()) { |
| 457 | return; |
| 458 | } |
| 459 | |
| 460 | this->enterState(Configuring); |
| 461 | |
| 462 | bool ret = doConfigureInternal(); |
| 463 | |
| 464 | if (ret) { |
| 465 | this->ConfigureNeeded = false; |
| 466 | } |
| 467 | |
| 468 | if (ret && !this->CacheValues->cacheModel()->newPropertyCount()) { |
| 469 | this->enterState(ReadyGenerate); |
| 470 | } else { |
| 471 | this->enterState(ReadyConfigure); |
| 472 | this->CacheValues->scrollToTop(); |
| 473 | } |
| 474 | this->ProgressBar->reset(); |
| 475 | |
| 476 | #ifdef QT_WINEXTRAS |
| 477 | this->TaskbarButton->progress()->reset(); |
| 478 | #endif |
| 479 | } |
| 480 | |
| 481 | bool CMakeSetupDialog::doConfigureInternal() |
| 482 | { |
nothing calls this directly
no test coverage detected