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

Method AddExtDock

AdaptixClient/Source/UI/Widgets/AdaptixWidget.cpp:1339–1356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1337}
1338
1339void AdaptixWidget::AddExtDock(const QString &id, const QString &title, const std::function<void()> &showCallback)
1340{
1341 if (extDocksMap.contains(id))
1342 return;
1343
1344 ExtDockEntry entry;
1345 entry.id = id;
1346 entry.title = title;
1347 entry.showCallback = showCallback;
1348 extDocksMap[id] = entry;
1349
1350 auto* item = new QListWidgetItem(title);
1351 item->setData(Qt::UserRole, id);
1352 extDocksListWidget->addItem(item);
1353
1354 extDocksListWidget->setVisible(true);
1355 extDocksEmptyLabel->setVisible(false);
1356}
1357
1358void AdaptixWidget::RemoveExtDock(const QString &id)
1359{

Callers 2

AxExtDialogWrapperMethod · 0.80
AxDockWrapperMethod · 0.80

Calls 4

containsMethod · 0.45
setDataMethod · 0.45
addItemMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected