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

Method setCoordinateBindingEnabled

src/backend/worksheet/WorksheetElement.cpp:790–805  ·  view source on GitHub ↗

do I need a final method?

Source from the content-addressed store, hash-verified

788
789STD_SETTER_CMD_IMPL_S(WorksheetElement, SetCoordinateBindingEnabled, bool, coordinateBindingEnabled) // do I need a final method?
790bool 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
807STD_SETTER_CMD_IMPL_F_S_SC(WorksheetElement, SetPositionLogical, QPointF, positionLogical, updatePosition, objectPositionChanged)
808void WorksheetElement::setPositionLogical(QPointF pos) {

Callers 15

bindingChangedMethod · 0.80
bindingChangedMethod · 0.80
bindingChangedMethod · 0.80
bindingChangedMethod · 0.80
InfoElementMethod · 0.80
addCurveMethod · 0.80
addCurvePathMethod · 0.80
finalizeAddMethod · 0.80
addCustomPointMethod · 0.80
helperMacros.hFile · 0.80

Calls 1

updatePositionMethod · 0.45