| 142 | } |
| 143 | |
| 144 | void AttachDialog::updateProcesses() |
| 145 | { |
| 146 | auto *watcher = new QFutureWatcher<ProcDataList>(this); |
| 147 | connect(watcher, &QFutureWatcherBase::finished, |
| 148 | this, &AttachDialog::updateProcessesFinished); |
| 149 | watcher->setFuture(QtConcurrent::run(processList, m_model->processes())); |
| 150 | } |
| 151 | |
| 152 | void AttachDialog::updateProcessesFinished() |
| 153 | { |