MCPcopy Create free account
hub / github.com/MrKepzie/Natron / EditNodeNameDialog

Method EditNodeNameDialog

Gui/NodeGraph45.cpp:482–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480};
481
482EditNodeNameDialog::EditNodeNameDialog(const NodeGuiPtr& node,
483 QWidget* parent)
484 : QDialog(parent)
485 , _imp( new EditNodeNameDialogPrivate(node) )
486{
487 QVBoxLayout* mainLayout = new QVBoxLayout(this);
488
489 mainLayout->setContentsMargins(0, 0, 0, 0);
490 setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
491 _imp->field = new LineEdit(this);
492 _imp->field->setText( QString::fromUtf8( node->getNode()->getLabel().c_str() ) );
493 mainLayout->addWidget(_imp->field);
494}
495
496EditNodeNameDialog::~EditNodeNameDialog()
497{

Callers

nothing calls this directly

Calls 4

addWidgetMethod · 0.80
setTextMethod · 0.45
getLabelMethod · 0.45
getNodeMethod · 0.45

Tested by

no test coverage detected