| 183 | } |
| 184 | |
| 185 | void MainProgress::CompleteProgress() { |
| 186 | progress_steps_ = progress_bar_->maximum(); |
| 187 | context_->PostUITask([this]() { |
| 188 | progress_bar_->setValue(progress_steps_); |
| 189 | QTimer::singleShot(150, [this]() { |
| 190 | this->hide(); |
| 191 | }); |
| 192 | |
| 193 | }); |
| 194 | } |
| 195 | |
| 196 | int MainProgress::GetCurrentProgress() { |
| 197 | return progress_steps_; |
no test coverage detected