do I need a final method?
| 788 | |
| 789 | STD_SETTER_CMD_IMPL_S(WorksheetElement, SetCoordinateBindingEnabled, bool, coordinateBindingEnabled) // do I need a final method? |
| 790 | bool WorksheetElement::setCoordinateBindingEnabled(bool on) { |
| 791 | if (on && !cSystem) |
| 792 | return false; |
| 793 | |
| 794 | Q_D(WorksheetElement); |
| 795 | if (on != d->coordinateBindingEnabled) { |
| 796 | // Must not be in the Undo Command, |
| 797 | // because if done once, logical and |
| 798 | // scene pos are synched and therefore |
| 799 | // when changing it does not have any visual effect |
| 800 | d->updatePosition(); |
| 801 | exec(new WorksheetElementSetCoordinateBindingEnabledCmd(d, on, on ? ki18n("%1: use logical coordinates") : ki18n("%1: set invisible"))); |
| 802 | return true; |
| 803 | } |
| 804 | return true; |
| 805 | } |
| 806 | |
| 807 | STD_SETTER_CMD_IMPL_F_S_SC(WorksheetElement, SetPositionLogical, QPointF, positionLogical, updatePosition, objectPositionChanged) |
| 808 | void WorksheetElement::setPositionLogical(QPointF pos) { |