| 3068 | } |
| 3069 | |
| 3070 | void CartesianPlot::zoomOut(int xIndex, int yIndex, const QPointF& sceneRelPos) { |
| 3071 | setUndoAware(false); |
| 3072 | enableAutoScale(Dimension::X, xIndex, false); |
| 3073 | enableAutoScale(Dimension::Y, yIndex, false); |
| 3074 | setUndoAware(true); |
| 3075 | setRangeDirty(Dimension::X, xIndex, true); |
| 3076 | setRangeDirty(Dimension::Y, yIndex, true); |
| 3077 | zoom(xIndex, Dimension::X, false, sceneRelPos.x()); // zoom out x |
| 3078 | zoom(yIndex, Dimension::Y, false, sceneRelPos.y()); // zoom out y |
| 3079 | |
| 3080 | Q_D(CartesianPlot); |
| 3081 | d->retransformScales(xIndex, yIndex); |
| 3082 | WorksheetElementContainer::retransform(); |
| 3083 | } |
| 3084 | |
| 3085 | void CartesianPlot::zoomInX(int index) { |
| 3086 | zoomInOut(index, Dimension::X, true); |