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

Method setLayer

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

Source from the content-addressed store, hash-verified

74 ******************************************************************************/
75
76void CmdStrokeTextEdit::setLayer(const Layer& layer, bool immediate) noexcept {
77 Q_ASSERT(!wasEverExecuted());
78 mNewLayer = &layer;
79 if (immediate) mText.setLayer(*mNewLayer);
80}
81
82void CmdStrokeTextEdit::setText(const QString& text, bool immediate) noexcept {
83 Q_ASSERT(!wasEverExecuted());

Callers 2

performUndoMethod · 0.45
performRedoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected