MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / forceZoom

Method forceZoom

gui/src/plotnavigator.cpp:394–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void PlotNavigator::forceZoom(QwtAxisId axisId, const QRectF &rect)
395{
396 for(Navigator *nav : *m_navigators) {
397 if((nav->zoomer->isXAxisEn() && nav->zoomer->getXAxis() == axisId) ||
398 (nav->zoomer->isYAxisEn() && nav->zoomer->getYAxis() == axisId)) {
399 nav->zoomer->zoom(rect);
400 }
401 }
402}
403
404void PlotNavigator::setZoomerXAxesEn(bool en)
405{

Callers

nothing calls this directly

Calls 5

isXAxisEnMethod · 0.45
getXAxisMethod · 0.45
isYAxisEnMethod · 0.45
getYAxisMethod · 0.45
zoomMethod · 0.45

Tested by

no test coverage detected