MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ChangeTab

Method ChangeTab

src/render_panel/ui/tab_security_internals.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void TabSecurityInternals::ChangeTab(const StSecurityTabName& tn) {
106 for (auto& [name, tab] : tabs_) {
107 if (tn == name) {
108 stacked_widget_->setCurrentWidget(tabs_[tn]);
109 tabs_[tn]->OnTabShow();
110 ((CustomTabBtn*)tabs_[tn]->GetAttach())->ToActiveStatus();
111 } else {
112 tabs_[name]->OnTabShow();
113 ((CustomTabBtn*)tabs_[name]->GetAttach())->ToInActiveStatus();
114 }
115 }
116 }
117}

Callers

nothing calls this directly

Calls 2

GetAttachMethod · 0.80
OnTabShowMethod · 0.45

Tested by

no test coverage detected