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

Method setPosition

libs/librepcb/editor/cmd/cmdimageedit.cpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void CmdImageEdit::setPosition(const Point& pos, bool immediate) noexcept {
72 Q_ASSERT(!wasEverExecuted());
73 mNewPosition = pos;
74 if (immediate) mImage.setPosition(mNewPosition);
75}
76
77void CmdImageEdit::translate(const Point& deltaPos, bool immediate) noexcept {
78 Q_ASSERT(!wasEverExecuted());

Callers 3

translateMethod · 0.45
performUndoMethod · 0.45
performRedoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected