MCPcopy Create free account
hub / github.com/KDE/krita / insertText

Method insertText

plugins/tools/svgtexttool/SvgTextCursor.cpp:607–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void SvgTextCursor::insertText(QString text)
608{
609
610 if (d->shape) {
611 //KUndo2Command *parentCmd = new KUndo2Command;
612 if (hasSelection()) {
613 SvgTextRemoveCommand *removeCmd = removeSelectionImpl(false);
614 addCommandToUndoAdapter(removeCmd);
615 }
616
617 SvgTextInsertCommand *insertCmd = new SvgTextInsertCommand(d->shape, d->pos, d->anchor, text);
618 addCommandToUndoAdapter(insertCmd);
619
620 }
621}
622
623void SvgTextCursor::insertRichText(KoSvgTextShape *insert, bool inheritPropertiesIfPossible)
624{

Callers 13

redoMethod · 0.45
replaceMethod · 0.45
slotInsertRichTextMethod · 0.45
writeMethod · 0.45
indentMethod · 0.45
autoindentMethod · 0.45
toggleCommentMethod · 0.45
insertMessageMethod · 0.45
insertMethod · 0.45
writeMethod · 0.45
indent_lineMethod · 0.45
paren_openedMethod · 0.45

Calls 1

hasSelectionFunction · 0.50

Tested by

no test coverage detected