MCPcopy Create free account
hub / github.com/cneben/QuickQanava / insertNonVisualNode

Method insertNonVisualNode

src/qanGraph.cpp:618–630  ·  view source on GitHub ↗

Graph Factories */ --------------------------------------------------------

Source from the content-addressed store, hash-verified

616
617/* Graph Factories *///--------------------------------------------------------
618auto Graph::insertNonVisualNode(Node* node) -> bool
619{
620 if (node == nullptr) {
621 qWarning() << "Graph::insertNonVisualNode(): Error: node is nullptr.";
622 return false;
623 }
624 if (super_t::insert_node(node)) {
625 onNodeInserted(*node);
626 emit nodeInserted(node);
627 return true;
628 }
629 return false;
630}
631
632qan::Node* Graph::insertNode(QQmlComponent* nodeComponent, qan::NodeStyle* nodeStyle)
633{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected