| 382 | } |
| 383 | |
| 384 | void PlotNavigator::forceMagnify(QwtAxisId axisId, double factor, QPointF cursorPos) |
| 385 | { |
| 386 | for(Navigator *nav : *m_navigators) { |
| 387 | if((nav->magnifier->isXAxisEn() && nav->magnifier->getXAxis() == axisId) || |
| 388 | (nav->magnifier->isYAxisEn() && nav->magnifier->getYAxis() == axisId)) { |
| 389 | nav->magnifier->zoom(factor, cursorPos); |
| 390 | } |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | void PlotNavigator::forceZoom(QwtAxisId axisId, const QRectF &rect) |
| 395 | { |