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

Method onUndo

gui/src/plotnavigator.cpp:255–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void PlotNavigator::onUndo()
256{
257 bool doReset = true;
258 for(Navigator *nav : *m_navigators) {
259 if(nav->history->length() > 1) {
260 nav->history->pop();
261 nav->zoomer->silentZoom(nav->history->top());
262 doReset = false;
263 Q_EMIT rectChanged(nav->history->top(), navigationType::None);
264 }
265 }
266
267 if(doReset) {
268 Q_EMIT reset();
269 }
270}
271
272PlotMagnifier *PlotNavigator::createMagnifier(QwtAxisId axisId)
273{

Callers

nothing calls this directly

Calls 2

topMethod · 0.80
silentZoomMethod · 0.45

Tested by

no test coverage detected