MCPcopy Create free account
hub / github.com/KDE/labplot / zoomOut

Method zoomOut

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:3070–3083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3068}
3069
3070void 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
3085void CartesianPlot::zoomInX(int index) {
3086 zoomInOut(index, Dimension::X, true);

Callers 2

wheelEventMethod · 0.80

Calls 3

xMethod · 0.80
retransformScalesMethod · 0.80
yMethod · 0.45

Tested by 1