| 854 | STD_SETTER_CMD_IMPL_S(Axis, SetMinorTicksNumberNoFinalize, int, minorTicksNumber) |
| 855 | STD_SETTER_CMD_IMPL_F_S(Axis, SetMinorTicksAutoNumber, bool, minorTicksAutoNumber, retransformTicks) |
| 856 | void Axis::setMinorTicksAutoNumber(bool automatic) { |
| 857 | Q_D(Axis); |
| 858 | if (automatic != d->minorTicksAutoNumber) { |
| 859 | auto* parent = new AxisSetMinorTicksAutoNumberCmd(d, automatic, ki18n("%1: enable/disable minor automatic tick numbers")); |
| 860 | // TODO: for automatic it is always 1. Is that ok? |
| 861 | if (automatic && 1 != d->minorTicksNumber) |
| 862 | new AxisSetMinorTicksNumberNoFinalizeCmd(d, 1, ki18n("%1: set the total number of the minor ticks"), parent); |
| 863 | exec(parent); |
| 864 | } |
| 865 | } |
| 866 | |
| 867 | STD_SETTER_CMD_IMPL_S(Axis, SetMinorTicksAutoNumberNoFinalize, bool, minorTicksAutoNumber) // no retransformTicks called |
| 868 | STD_SETTER_CMD_IMPL_F_S(Axis, SetMinorTicksNumber, int, minorTicksNumber, retransformTicks) |
no outgoing calls