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

Method Clear

AdaptixClient/Source/UI/Graph/SessionsGraph.cpp:214–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void SessionsGraph::Clear()
215{
216 for ( int i = 0; i < this->items.size(); i++ ) {
217 if (this->items[i]) {
218 if (this->items[i]->parentLink) {
219 this->graphScene->removeItem(this->items[i]->parentLink);
220 delete this->items[i]->parentLink;
221 this->items[i]->parentLink = nullptr;
222 }
223 if (this->items[i]->agent)
224 this->items[i]->agent->graphItem = nullptr;
225 this->graphScene->removeItem( this->items[ i ] );
226 delete this->items[ i ];
227 this->items[ i ] = nullptr;
228 }
229 }
230 this->items.clear();
231
232 this->RootInit();
233}
234
235void SessionsGraph::scaleView(qreal scaleFactor)
236{

Callers 1

contextMenuEventMethod · 0.45

Calls 4

RootInitMethod · 0.95
sizeMethod · 0.45
removeItemMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected