| 238 | |
| 239 | STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetMinusDeltaXPos, QPointF, minusDeltaXPos, update) |
| 240 | void DatapickerPoint::setMinusDeltaXPos(QPointF pos) { |
| 241 | Q_D(DatapickerPoint); |
| 242 | if (pos != d->minusDeltaXPos) { |
| 243 | auto* curve = dynamic_cast<DatapickerCurve*>(parentAspect()); |
| 244 | if (!curve) |
| 245 | return; |
| 246 | |
| 247 | beginMacro(i18n("%1: set -delta_X position", name())); |
| 248 | if (curve->curveErrorTypes().x == DatapickerCurve::ErrorType::SymmetricError) { |
| 249 | exec(new DatapickerPointSetMinusDeltaXPosCmd(d, pos, ki18n("%1: set -delta_X position"))); |
| 250 | setPlusDeltaXPos(QPointF(std::abs(pos.x()), pos.y())); |
| 251 | } else |
| 252 | exec(new DatapickerPointSetMinusDeltaXPosCmd(d, pos, ki18n("%1: set -delta_X position"))); |
| 253 | endMacro(); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | STD_SETTER_CMD_IMPL_F_S(DatapickerPoint, SetPlusDeltaYPos, QPointF, plusDeltaYPos, update) |
| 258 | void DatapickerPoint::setPlusDeltaYPos(QPointF pos) { |
no test coverage detected