| 3053 | // zoom |
| 3054 | |
| 3055 | void CartesianPlot::zoomIn(int xIndex, int yIndex, const QPointF& sceneRelPos) { |
| 3056 | setUndoAware(false); |
| 3057 | enableAutoScale(Dimension::X, xIndex, false); |
| 3058 | enableAutoScale(Dimension::Y, yIndex, false); |
| 3059 | setUndoAware(true); |
| 3060 | setRangeDirty(Dimension::X, xIndex, true); |
| 3061 | setRangeDirty(Dimension::Y, yIndex, true); |
| 3062 | zoom(xIndex, Dimension::X, true, sceneRelPos.x()); // zoom in x |
| 3063 | zoom(yIndex, Dimension::Y, true, sceneRelPos.y()); // zoom in y |
| 3064 | |
| 3065 | Q_D(CartesianPlot); |
| 3066 | d->retransformScales(xIndex, yIndex); |
| 3067 | WorksheetElementContainer::retransform(); |
| 3068 | } |
| 3069 | |
| 3070 | void CartesianPlot::zoomOut(int xIndex, int yIndex, const QPointF& sceneRelPos) { |
| 3071 | setUndoAware(false); |
no test coverage detected