MCPcopy Create free account
hub / github.com/KDE/kdevelop / countAllUses

Method countAllUses

kdevplatform/language/duchain/navigation/useswidget.cpp:647–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647unsigned int UsesWidget::countAllUses() const
648{
649 unsigned int totalUses = 0;
650 const auto items = this->items();
651 for (QWidget* w : items) {
652 if (auto* useWidget = qobject_cast<TopContextUsesWidget*>(w)) {
653 totalUses += useWidget->usesCount();
654 }
655 }
656
657 return totalUses;
658}
659
660void UsesWidget::setAllExpanded(bool expanded)
661{

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.45
usesCountMethod · 0.45

Tested by

no test coverage detected