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

Method scaleView

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

Source from the content-addressed store, hash-verified

233}
234
235void SessionsGraph::scaleView(qreal scaleFactor)
236{
237 const qreal factor = this->transform().scale( scaleFactor, scaleFactor ).mapRect( QRectF( 0, 0, 1, 1 ) ).width();
238 if ( factor < 0.3 || factor > 3 )
239 return;
240
241 scale(scaleFactor, scaleFactor);
242}
243
244void SessionsGraph::itemMoved()
245{

Callers 1

SessionsGraphMethod · 0.95

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected