MCPcopy Create free account
hub / github.com/Kitware/ParaView / link

Method link

Qt/Python/pqLinkedObjectPythonTextArea.cxx:16–31  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

14
15//-----------------------------------------------------------------------------
16void pqLinkedObjectPythonTextArea::link(pqLinkedObjectInterface* other)
17{
18 if (other)
19 {
20 const QUndoStack& undoStack = this->TextArea.getUndoStack();
21 this->ConnectedTo = other;
22 this->Connection = QObject::connect(&undoStack, &QUndoStack::indexChanged,
23 [this]()
24 {
25 if (!this->SettingText)
26 {
27 this->ConnectedTo->setText(this->getText());
28 }
29 });
30 }
31}

Callers 1

Calls 2

getTextMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected