MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / updateLabel

Method updateLabel

src/uilocker.cpp:498–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void UILocker::updateLabel()
499{
500 if (!m_ui) {
501 // this can happen if the lock overlay was destroyed while a cross-thread
502 // call for updateLabel() was in flight
503 return;
504 }
505
506 QStringList labels;
507
508 for (auto itor = m_sessions.rbegin(); itor != m_sessions.rend(); ++itor) {
509 if (auto ss = itor->lock()) {
510 labels.push_back(QString("%1 (%2)").arg(ss->name()).arg(ss->pid()));
511 }
512 }
513
514 m_ui->setInfo(labels);
515}
516
517UILocker::Results UILocker::result() const
518{

Callers 1

setInfoMethod · 0.80

Calls 5

QStringClass · 0.85
lockMethod · 0.80
nameMethod · 0.45
pidMethod · 0.45
setInfoMethod · 0.45

Tested by

no test coverage detected