| 253 | } |
| 254 | |
| 255 | void 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 | |
| 272 | PlotMagnifier *PlotNavigator::createMagnifier(QwtAxisId axisId) |
| 273 | { |
nothing calls this directly
no test coverage detected