| 752 | // ── Helpers ─────────────────────────────────────────────────────────────────── |
| 753 | |
| 754 | void ProcessesWidget::updateStatusBar() |
| 755 | { |
| 756 | const QList<OS::Process> &all = this->m_lastProcessSnapshot.isEmpty() |
| 757 | ? this->m_model->GetProcesses() |
| 758 | : this->m_lastProcessSnapshot; |
| 759 | const int totalTasks = all.size(); |
| 760 | |
| 761 | qlonglong totalThreads = 0; |
| 762 | for (const OS::Process &p : all) |
| 763 | totalThreads += qMax(0, p.Threads); |
| 764 | const QString text = tr("Tasks: %1 Threads: %2").arg(totalTasks).arg(totalThreads); |
| 765 | |
| 766 | this->ui->statusLabel->setText(text); |
| 767 | } |
| 768 | |
| 769 | void ProcessesWidget::copyRowSelectionToClipboard() |
| 770 | { |
nothing calls this directly
no outgoing calls
no test coverage detected