MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / onTabChanged

Method onTabChanged

AdaptixClient/Source/UI/MainUI.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void MainUI::onTabChanged(int index)
294{
295 for (int i = 0; i < mainuiTabWidget->count(); ++i) {
296 auto adaptixWidget = qobject_cast<AdaptixWidget*>(mainuiTabWidget->widget(i));
297 if (adaptixWidget) {
298 QString tabName = adaptixWidget->GetProfile()->GetProject();
299 bool showButton = (i == index);
300 updateTabButton(i, tabName, showButton);
301 }
302 }
303}
304
305void MainUI::updateTabButton(const int index, const QString& tabName, const bool showButton)
306{

Callers

nothing calls this directly

Calls 4

GetProjectMethod · 0.80
countMethod · 0.45
widgetMethod · 0.45
GetProfileMethod · 0.45

Tested by

no test coverage detected