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

Method addRectToHistory

gui/src/plotnavigator.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169QSet<Navigator *> *PlotNavigator::navigators() { return m_navigators; }
170
171void PlotNavigator::addRectToHistory(Navigator *nav, const QRectF &rect, navigationType type)
172{
173 if(m_historyEn) {
174 if(nav->lastOperation == type && (type == navigationType::Magnify || type == navigationType::Pan)) {
175 nav->history->pop();
176 }
177 nav->history->push(rect);
178 nav->lastOperation = type;
179 }
180}
181
182void PlotNavigator::addNavigators(QwtAxisId axisId)
183{

Callers 1

syncNavigatorsMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected