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

Method setOffset

src/backend/worksheet/plots/cartesian/Axis.cpp:590–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588
589STD_SETTER_CMD_IMPL_F(Axis, SetOffset, double, offset, retransform)
590void Axis::setOffset(double offset, bool undo) {
591 Q_D(Axis);
592 if (offset != d->offset) {
593 if (undo) {
594 exec(new AxisSetOffsetCmd(d, offset, ki18n("%1: set axis offset")));
595 } else {
596 d->offset = offset;
597 // don't need to call retransform() afterward
598 // since the only usage of this call is in CartesianPlot, where retransform is called for all children anyway.
599 }
600 Q_EMIT positionChanged(offset);
601 }
602}
603
604STD_SETTER_CMD_IMPL_F_S(Axis, SetRange, Range<double>, range, retransform)
605void Axis::setRange(Range<double> range) {

Callers 1

setTypeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected