MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / setPosition

Method setPosition

libs/librepcb/editor/project/cmd/cmddeviceinstanceedit.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 ******************************************************************************/
70
71void CmdDeviceInstanceEdit::setPosition(const Point& pos,
72 bool immediate) noexcept {
73 Q_ASSERT(!wasEverExecuted());
74 mNewPos = pos;
75 if (immediate) mDevice.setPosition(mNewPos);
76}
77
78void CmdDeviceInstanceEdit::translate(const Point& deltaPos,
79 bool immediate) noexcept {

Callers 4

translateMethod · 0.45
performUndoMethod · 0.45
performRedoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected