| 256 | |
| 257 | STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetPlusDeltaYPos, QPointF, plusDeltaYPos, update) |
| 258 | void 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 | |
| 275 | STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetMinusDeltaYPos, QPointF, minusDeltaYPos, update) |
| 276 | void DatapickerPoint::setMinusDeltaYPos(QPointF pos) { |
no test coverage detected