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

Method setPlusDeltaYPos

src/backend/datapicker/DatapickerPoint.cpp:258–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetPlusDeltaYPos, QPointF, plusDeltaYPos, update)
258void DatapickerPoint::setPlusDeltaYPos(QPointF pos) {
259 Q_D(DatapickerPoint);
260 if (pos != d->plusDeltaYPos) {
261 auto* curve = dynamic_cast<DatapickerCurve*>(parentAspect());
262 if (!curve)
263 return;
264
265 beginMacro(i18n("%1: set +delta_Y position", name()));
266 if (curve->curveErrorTypes().y == DatapickerCurve::ErrorType::SymmetricError) {
267 exec(new DatapickerPointSetPlusDeltaYPosCmd(d, pos, ki18n("%1: set +delta_Y position")));
268 setMinusDeltaYPos(QPointF(pos.x(), std::abs(pos.y())));
269 } else
270 exec(new DatapickerPointSetPlusDeltaYPosCmd(d, pos, ki18n("%1: set +delta_Y position")));
271 endMacro();
272 }
273}
274
275STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetMinusDeltaYPos, QPointF, minusDeltaYPos, update)
276void DatapickerPoint::setMinusDeltaYPos(QPointF pos) {

Callers 1

mouseReleaseEventMethod · 0.80

Calls 3

xMethod · 0.80
QPointFClass · 0.70
yMethod · 0.45

Tested by

no test coverage detected