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

Method ChangeTab

src/render_panel/gr_workspace.cpp:546–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 void GrWorkspace::ChangeTab(const TabName& tn) {
547 for (auto& [name, tab] : tabs_) {
548 if (tn == name) {
549 stacked_widget_->setCurrentWidget(tabs_[tn]);
550 tabs_[tn]->OnTabShow();
551 ((CustomTabBtn*)tabs_[tn]->GetAttach())->ToActiveStatus();
552 } else {
553 tabs_[name]->OnTabShow();
554 ((CustomTabBtn*)tabs_[name]->GetAttach())->ToInActiveStatus();
555 }
556 }
557 }
558
559 void GrWorkspace::closeEvent(QCloseEvent *event) {
560 if (upgrade_helper_widget_) {

Callers

nothing calls this directly

Calls 2

GetAttachMethod · 0.80
OnTabShowMethod · 0.45

Tested by

no test coverage detected