MCPcopy Create free account
hub / github.com/KDE/labplot / addChildFast

Method addChildFast

src/backend/core/AbstractAspect.cpp:539–546  ·  view source on GitHub ↗

* \brief Add the given Aspect to my list of children without any checks and without putting this step onto the undo-stack */

Source from the content-addressed store, hash-verified

537 * \brief Add the given Aspect to my list of children without any checks and without putting this step onto the undo-stack
538 */
539void AbstractAspect::addChildFast(AbstractAspect* child) {
540 Q_EMIT childAspectAboutToBeAdded(this, nullptr, child); // TODO: before-pointer is 0 here, also in the commands classes. why?
541 d->insertChild(d->m_children.count(), child);
542 child->finalizeAdd();
543 // PERFTRACE(Q_FUNC_INFO);
544 Q_EMIT childAspectAdded(child);
545 // print_callstack();
546}
547
548/**
549 * \brief Insert the given Aspect at a specific position in my list of children.

Callers 9

importToMethod · 0.80
loadFolderMethod · 0.80
handleLooseWindowsMethod · 0.80
loadWorkbookMethod · 0.80
loadMatrixWorkbookMethod · 0.80
loadWorksheetMethod · 0.80
loadCurvesMethod · 0.80
loadAxesMethod · 0.80

Calls 3

insertChildMethod · 0.80
countMethod · 0.45
finalizeAddMethod · 0.45

Tested by

no test coverage detected