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

Method setPosition

libs/librepcb/editor/cmd/cmdstroketextedit.cpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void CmdStrokeTextEdit::setPosition(const Point& pos, bool immediate) noexcept {
124 Q_ASSERT(!wasEverExecuted());
125 mNewPosition = pos;
126 if (immediate) mText.setPosition(mNewPosition);
127}
128
129void CmdStrokeTextEdit::translate(const Point& delta, bool immediate) noexcept {
130 Q_ASSERT(!wasEverExecuted());

Callers 3

translateMethod · 0.45
performUndoMethod · 0.45
performRedoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected