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

Method ChangeTab

src/render_panel/ui/tab_settings.cpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void TabSettings::ChangeTab(const StTabName& tn) {
200 for (auto& [name, tab] : tabs_) {
201 if (tn == name) {
202 stacked_widget_->setCurrentWidget(tabs_[tn]);
203 tabs_[tn]->OnTabShow();
204 ((CustomTabBtn*)tabs_[tn]->GetAttach())->ToActiveStatus();
205 } else {
206 tabs_[name]->OnTabShow();
207 ((CustomTabBtn*)tabs_[name]->GetAttach())->ToInActiveStatus();
208 }
209 }
210 }
211
212}

Callers

nothing calls this directly

Calls 2

GetAttachMethod · 0.80
OnTabShowMethod · 0.45

Tested by

no test coverage detected