| 88 | } |
| 89 | |
| 90 | void ProcessTracker::setBackend(GammaRay::ProcessTrackerBackend *backend) |
| 91 | { |
| 92 | if (backend == d->backend) { |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | if (d->backend) { |
| 97 | disconnect(d->backend, &ProcessTrackerBackend::processChecked, |
| 98 | d.data(), &D::processChecked); |
| 99 | } |
| 100 | |
| 101 | d->backend = backend; |
| 102 | |
| 103 | if (d->backend) { |
| 104 | connect(d->backend, &ProcessTrackerBackend::processChecked, |
| 105 | d.data(), &D::processChecked, Qt::QueuedConnection); |
| 106 | } |
| 107 | |
| 108 | emit backendChanged(d->backend); |
| 109 | } |
| 110 | |
| 111 | qint64 ProcessTracker::pid() const |
| 112 | { |
no test coverage detected