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

Method timerEvent

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

Source from the content-addressed store, hash-verified

248}
249
250void SessionsGraph::timerEvent( QTimerEvent* event )
251{
252 Q_UNUSED(event);
253 bool itemsMoved = false;
254
255 for ( auto item : this->items ) {
256 item->calculateForces();
257 if (item->advancePosition())
258 itemsMoved = true;
259 }
260
261 if ( !itemsMoved ) {
262 killTimer( timerId );
263 timerId = 0;
264 }
265}
266
267void SessionsGraph::wheelEvent( QWheelEvent* event )
268{

Callers

nothing calls this directly

Calls 2

calculateForcesMethod · 0.80
advancePositionMethod · 0.80

Tested by

no test coverage detected