MCPcopy Create free account
hub / github.com/benapetr/TuxManager / updateStatusBar

Method updateStatusBar

src/processeswidget.cpp:754–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752// ── Helpers ───────────────────────────────────────────────────────────────────
753
754void 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
769void ProcessesWidget::copyRowSelectionToClipboard()
770{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected