| 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 | } |