| 60 | } |
| 61 | |
| 62 | void run() override |
| 63 | { |
| 64 | //We connect directly, so we can do the pre-grouping within the background thread |
| 65 | connect(m_worker, &CodeCompletionWorker::foundDeclarationsReal, m_model, |
| 66 | &CodeCompletionModel::foundDeclarations, Qt::QueuedConnection); |
| 67 | |
| 68 | connect(m_model, &CodeCompletionModel::completionsNeeded, m_worker, |
| 69 | QOverload<const DUChainPointer<KDevelop::DUContext>&, const Cursor&, View*>::of(&CodeCompletionWorker::computeCompletions), |
| 70 | Qt::QueuedConnection); |
| 71 | connect(m_model, &CodeCompletionModel::doSpecialProcessingInBackground, m_worker, |
| 72 | &CodeCompletionWorker::doSpecialProcessing); |
| 73 | exec(); |
| 74 | } |
| 75 | |
| 76 | CodeCompletionModel* m_model; |
| 77 | CodeCompletionWorker* m_worker; |
no outgoing calls
no test coverage detected